为什么我的单元测试失败,除非我使用调试标志?

时间:2015-05-26 17:08:08

标签: node.js mocha

如果我执行我的测试:

mocha test/bootstrap.test.js test/unit/**/*.test.js

他们失败了:

  1)  "before all" hook: before:
     Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.

如果我添加--debug标志,一切正常......

mocha --debug test/bootstrap.test.js test/unit/**/*.test.js

每个测试都会执行并通过。怎么会?我在哪里可以找到罪魁祸首?

node -v
v0.12.2

mocha --version
2.2.5

0 个答案:

没有答案
相关问题