【发布时间】:2013-12-01 17:18:57
【问题描述】:
我运行 mocha 命令来运行我的测试
$ ./node_modules/.bin/mocha --compilers coffee:coffee-script -R spec
我希望将其他选项传递给咖啡脚本编译器(--bare 以避免将 .coffee 编译为 .js 时引入的外部闭包)。有没有办法做到这一点?我试过了
$ ./node_modules/.bin/mocha --compilers coffee:coffee-script --bare -R spec
但这看起来不对。它也没有说 --bare 不是 mocha 的有效选项。
error: unknown option `--bare'
【问题讨论】:
标签: coffeescript mocha.js