Closed someApprentice closed 5 years ago
Problem solved due https://github.com/someApprentice/Crypter/commit/c6ed10605ac54faa13253fd115720889f8a5c807. But despite the fact that the option --detectOpenHandles
does not show any asynchronous process, the test process cannot stop.
--force-exit
is still a solution, but the console still gives an error
Have you considered using `--detectOpenHandles` to detect async operations that
kept running after all tests finished?
Literally to say Jest keeps opened the express server and to work around this issue need ran tests with
--force-exit
option.Need to find a way to shutdown the server after all test is done.