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

Run tests in the same process for debug/inspect #850

Open
sirenkovladd opened this issue Nov 12, 2024 · 2 comments
Open

Run tests in the same process for debug/inspect #850

sirenkovladd opened this issue Nov 12, 2024 · 2 comments

Comments

@sirenkovladd
Copy link

Add a flag like runInBand

https://jestjs.io/docs/troubleshooting#tests-are-failing-and-you-dont-know-why

@wellwelwel
Copy link
Owner

@sirenkovladd, can you help me on this idea?

With isolated processes, I have the advantage of allowing .ts, .cjs, .mjs, etc. to run in the exactly same suite.

By removing the isolation (running the tests in the same process), it comes with some intentional limitations:

  • Different structures (.ts vs. .js, CommonJS vs. ES Modules) must be executed in an exclusive suite.

In this case, the possibility of disabling isolation would be in line with your idea.

@sirenkovladd
Copy link
Author

I think this is expected
I think everyone who uses debug tries to execute the least number of tests (close to 1 test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants