Wallaby.js:不支持测试框架[mocha@2.0.1]

时间:2015-03-20 15:44:53

标签: javascript node.js testing intellij-idea

嗨,我收到一个错误,即不支持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在本地和全局安装了正确的版本

感谢您的帮助

0 个答案:

没有答案