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

Explore @swc/jest as an alternative to ts-jest #10121

Closed
alessbell opened this issue Sep 23, 2022 · 2 comments
Closed

Explore @swc/jest as an alternative to ts-jest #10121

alessbell opened this issue Sep 23, 2022 · 2 comments

Comments

@alessbell
Copy link
Member

Memory leak issues with jest + ts-jest have been reported since ~2020. There are several open issues on both projects:

There are also a number of confounding factors: memory consumption seems to have increased considerably when running this repository's tests in Node.js v16.11+, for example, but the commonly suggested workarounds (using ts-jest's isolatedModules option, jest's --runInBand or any combination of other "fixes") don't solve the issue for Apollo Client's tests.

Running the tests with Node.js v18.9.0 results in a hanging test (#10120).

@swc/jest

I've created the branch swc-jest to explore the use of @swc/jest + @swc/core as a replacement for ts-jest.

@amans1690
Copy link

@alessbell I am curious to know why you chose @swc/jest instead of babel-jest as an alternative? Is this just because of performance benefit in case of @swc/jest.

@alessbell
Copy link
Member Author

@amans1690 yes exactly—@swc/jest's perf is really impressive! Unfortunately there are a few things blocking our migration path so we'll be sticking with jest + ts-jest for now. Closing as won't do.

@alessbell alessbell closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants