我使用Codeship 基于Polymer入门套件v1.1测试我的项目.
当我npm test在测试管道内运行时,我看到以下错误:
> @ test /home/rof/src/github.com/TFarla/night-live
> gulp test:local
/home/rof/src/github.com/TFarla/night-live/node_modules/browser-sync/node_modules/lodash/index.js:8404
/**
^^^
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:413:25)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/rof/src/github.com/TFarla/night-live/node_modules/browser-sync/lib/hooks.js:3:20)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
npm ERR! Test failed. See above for more details.
Run Code Online (Sandbox Code Playgroud)
以下是设置命令:
# By default we use the Node.js version set in your package.json or the latest
# …Run Code Online (Sandbox Code Playgroud) unit-testing node.js codeship web-component-tester polymer-1.0