Jest - Add "forceExit" option #17574
Labels
outdated
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
type: feature
Currently I cannot find any way to get this param to work. I have migrated a ton of legacy projects to NX that have absolutely no need to clean up many resources when closed.... (docker container is destroyed and kubernetes starts a new one). I am currently having my CI run out of memory due to many different open handles that are opened during tests. I had absolutely no problem running all these tests with mocha using --exit however nx does not support mocha and I was using "babel mocha" but I am unable to get babel to register my library tsconfig paths.
I was hoping to switch to jest to avoid having to run a babel compile step on my libraries, but not being able to use forceExit like a could with mocha is a deal breaker as there is way too much code and way too many open handles and absolutely no need to refactor the code to close them all as we have no need or repercussions from having them.
The text was updated successfully, but these errors were encountered: