Closed atomfried closed 8 years ago
Did you have this problem out-of-the-box? If so, what were your scaffold options?
Hi Awk,
no, the problem first occurred when I removed all test cases from an API integration test. The problem then is, that the app is started by gulp (always) but closed by mocha (only when there is at least one test. Exotic corner case, but took me a while to understand.
Okay, good to know, thanks
Hi there,
\ Please read update first! **
I just switched to 3.7.6 with gulp. When I run test:server I get this (on a router unit test):
The usual test code:
Any clues what's causing this?
Edit: The port is btw occupied by the gulp process, which freezes after the failing test. (Running with -bail).
Update: It has nothing to do with the test. I removed all test files and it still occurs.
Update: Got it: Problem was running mocha:integration zero tests, so the cleanup in the after-callback in mocha.global.conf is never executed. SOLVED, I guess. However I think mocha is unintuitive there.