Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Wallaby.js:测试框架[mocha@2.0.1]不支持_Javascript_Node.js_Testing_Intellij Idea - Fatal编程技术网

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升级到新版本并再次运行?更改已解决问题,谢谢,下次我必须更仔细地阅读文档