【发布时间】:2019-08-24 20:16:40
【问题描述】:
我所有的测试都成功通过了。 但最后我收到了这条消息:
32 passing (7s)
=== ATTENTION - INVALID USAGE OF CONSOLE LOGS DETECTED ===
[------------all logs here------------]
npm ERR! code ELIFECYCLE
npm ERR! errno 10
npm ERR! MyProject@1.0.0 test: 'lb-mocha --opts tests/mocha.opts'
npm ERR! Exit status 10
npm ERR!
npm ERR! Failed at the MyProject@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\XXX\AppData\Roaming\npm-cache\_logs\2019-04-03T09_57_58_382Z-debug.log
这是我的 mocha.opts :
--allow-console-logs
--recursive
--require ts-node/register
tests/**/*.ts
--exit
你知道为什么它不工作吗?
【问题讨论】:
标签: node.js typescript mocha.js loopback