首页 > 解决方案 > 摩卡并行测试

问题描述

当我使用 mocha-parallel-tests 并行运行我的 mocha 测试时,我收到了弃用警告。如何克服这个错误?

DeprecationWarning: lookupFiles()in modulemocha/lib/utils已移至 modulemocha/lib/cli并将在 Mocha 的下一个主要版本中删除(node --trace-deprecation ...用于显示警告的创建位置)未处理的异步异常:TypeError: this.suite[option] is not a function

"scripts": { "test": "mocha-parallel-tests -R xunit --timeout 10000 --slow 1000 specs/**/*.spec.js" },

标签: mocha.js

解决方案


推荐阅读