-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Getting Node low level errors running vitest #3816
Comments
Hello @lemoustachiste. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
@sheremet-va would sharing the repo with a work branch for vitest work as a repro for you? On simpler code I cannot replicate the issue. |
Yes |
Please have a look at this branch: https://github.com/blockchain-certificates/cert-verifier-js/tree/chore/vitest just:
I did not get the mem alloc failure just now, but it still does not complete with I haven't investigated much yet, this is exploratory work to try and move away from jest. Thanks |
This error type usually happens when an application cannot work in multi-threaded mode. In this case, it is recommended to disable |
Vitest 1.0.0-beta has now If the code you are testing is incompatible with |
Describe the bug
So I am testing migration of my project from jest to vitest.
But when I run
vitest run
throughnpm run test
, I keep getting Node errors such as follows:This error does not even get to a point of running tests.
Or if some tests start running, then they stop unexpectedly with the following error:
Errors occur with both node 16.20.0 and 18.16.1.
My tests are all TS, so is my project.
Any clue what could be causing this?
Reproduction
Not sure if I can provide a repro at this point.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: