嗨,我收到一个错误,即不支持mocha:
wallaby.js started
Failed to load configuration file: Test framework [mocha@2.0.1] is not supported
我的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在本地和全局安装了正确的版本
感谢您的帮助