我有一个用咖啡脚本编写的准系统规范:
# test/foobar.spec.coffee
describe "falsy test", ->
it "should fail", ->
expect(true).toBe false
当我jasmine-node --coffee test/foobar.spec.coffee
从项目目录运行时,出现以下错误:
Exception loading: /Users/myuser/programming/project/test/foobar.spec.coffee
{ [Error: Cannot find module '/Users/myuser/programming/project/test/foobar.spec'] code: 'MODULE_NOT_FOUND' }
我在用:
node --version
v0.10.8
jasmine-node --version
1.13.0
有谁知道为什么会这样?