Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest - Add "forceExit" option #17574

Closed
brandoncollins7 opened this issue Jun 13, 2023 · 1 comment · Fixed by #17790
Closed

Jest - Add "forceExit" option #17574

brandoncollins7 opened this issue Jun 13, 2023 · 1 comment · Fixed by #17790
Assignees
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: feature

Comments

@brandoncollins7
Copy link

brandoncollins7 commented Jun 13, 2023

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.

@mandarini mandarini added the scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx label Jun 14, 2023
@barbados-clemens barbados-clemens self-assigned this Jun 26, 2023
@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants