Это работало отлично с кофе v1.4 и v1.5, но последняя версия теперь делает узел жасмин бросать странные ошибки, когда я бегу:Почему jasmine-node выбрасывает эту ошибку при попытке потребовать файл spec с кофе v1.6.2?
жасмин-узел --coffee --forceexit спецификации/
/Users/aa/bitium/copernicus/node_modules/coffee-script/lib/coffee-script/helpers.js:211
throw error;
^
SyntaxError: unexpected #
at Object.exports.throwSyntaxError (/Users/aa/bitium/copernicus/node_modules/coffee-script/lib/coffee-script/helpers.js:209:13)
at Object.parser.yy.parseError (/Users/aa/bitium/copernicus/node_modules/coffee-script/lib/coffee-script/coffee-script.js:245:20)
at Object.parse (/Users/aa/bitium/copernicus/node_modules/coffee-script/lib/coffee-script/parser.js:535:22)
at exports.compile.compile (/Users/aa/bitium/copernicus/node_modules/coffee-script/lib/coffee-script/coffee-script.js:36:25)
at Object.loadFile (/Users/aa/bitium/copernicus/node_modules/coffee-script/lib/coffee-script/coffee-script.js:179:28)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.jasmine.executeSpecsInFolder (/Users/aa/opensource/jasmine-node/lib/jasmine-node/index.js:136:7)
И все же, если я просто запустить
jasmine-node --coffee --forceexit spec/unit
or
jasmine-node --coffee --forceexit spec/integration
он работает отлично. Он просто не может обрабатывать папку спецификации уровня root. Линия Object.jasmine.executeSpecsInFolder делает, просто требуется (filename_of_a_spec), не понимаю, почему это было бы неожиданным # ошибкой.
Можете ли вы рассказать мне свою версию вашего узла? – Ven
версия узла v0.8.15 –