Javascript Wallaby.js:测试框架[mocha@2.0.1]不支持
嗨,我收到一个错误,不支持摩卡咖啡:Javascript Wallaby.js:测试框架[mocha@2.0.1]不支持,javascript,node.js,testing,intellij-idea,Javascript,Node.js,Testing,Intellij Idea,嗨,我收到一个错误,不支持摩卡咖啡: wallaby.js started Failed to load configuration file: Test framework [mocha@2.0.1] is not supported my wallaby.js文件: var babel = require('babel'); var es6ToEs5Preprocessor = function(file) { return babel.transform(file.conte
wallaby.js started
Failed to load configuration file: Test framework [mocha@2.0.1] is not supported
my wallaby.js文件:
var babel = require('babel');
var es6ToEs5Preprocessor = function(file) {
return babel.transform(file.content, {sourceMap: true});
};
module.exports = {
files: [
"src/**/*.js"
],
tests: [
"test/**/*.test.js"
],
preprocessors: {
'**/*.js': es6ToEs5Preprocessor
},
env: {
type: 'node',
runner: 'node'
},
testFramework: 'mocha@2.0.1',
debug: true
};
我试着在没有设置框架的情况下运行,虽然只是得到了一个不同的错误,mocha ins以正确的版本在本地和全局安装
感谢您的帮助官方支持的node.js版mocha是2.1.0,但浏览器版仍然是2.0.1。您是否尝试过将mocha升级到新版本并再次运行?更改已解决问题,谢谢,下次我必须更仔细地阅读文档