cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Node JS - mocha test not returning to prompt when running more than 1 test file

martinstenzig
Contributor
0 Kudos

I have a problem that my mocha test is not returning to the command prompt when I run more than one test file.

Here is a public repo that shows the test case on my machine:

https://github.com/MartinStenzig/cds-bug-2

Version information are contained in the repo README.

Does anybody else experience this behavior?

heiko_witteborg
Explorer
0 Kudos

Hi Martin,

I can reproduce. A workaround is to add an --exit flag to the mocha command, as described here: https://boneskull.com/mocha-v4-nears-release/#mochawontforceexit

I'll check with the team if this can be solved without the flag.

Best regards,

Heiko

PS: Output of npx wtfnode node_modules/.bin/_mocha --recursive true ./test/cases/**/*_test.js

Accepted Solutions (1)

Accepted Solutions (1)

martinstenzig
Contributor
0 Kudos

heiko.witteborg , the solution you described in the comment works like a charm! Thx!

Answers (0)