我正在使用Gulp与mocha/sinon/chai和jquery运行业力
我的karma.conf.js有:
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jquery-2.1.0', 'mocha'],
// Plugin specific config
client: {
mocha: {
reporter: 'spec',
ui: 'tdd'
}
}
Run Code Online (Sandbox Code Playgroud)
并且安装的节点模块是
"devDependencies": {
"chai": "",
"gulp": "",
"gulp-jslint": "",
"gulp-notify": "",
"gulp-phpunit": "",
"gulp-util": "",
"karma": "",
"karma-chai": "",
"karma-chrome-launcher": "",
"karma-cli": "",
"karma-firefox-launcher": "",
"karma-ie-launcher": "",
"karma-jquery": "",
"karma-mocha": "",
"karma-opera-launcher": "",
"karma-safari-launcher": "",
"karma-sinon": "",
"mocha": "",
"sinon": "*"
}
Run Code Online (Sandbox Code Playgroud)
但是当我跑到业力时,我得到了这个错误
"C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.5\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" C:\path\to\my\project\node_modules\gulp\bin\gulp.js --color --gulpfile …Run Code Online (Sandbox Code Playgroud)