Output that shows that mocha runs the tests correctly and jest don't
$ jest
PASS ./test.js
jest vs mocha in supertest
✓ should not work (40ms)
✓ should work (8ms)
Test Summary
› Ran all tests.
› 2 tests passed (2 total in 1 test suite, run time 2.192s)
$ mocha
jest vs mocha in supertest
1) should not work
✓ should work
1 passing (72ms)
1 failing
1) jest vs mocha in supertest should not work:
Error: expected 999 "undefined", got 200 "OK"
at Test.assert (node_modules/supertest/lib/test.js:205:15)
at Server.assert (node_modules/supertest/lib/test.js:132:12)
at emitCloseNT (net.js:1549:8)
at _combinedTickCallback (internal/process/next_tick.js:71:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
So this is still not works, but why? What a obvious bug is!