Replies: 1 comment 2 replies
-
Did you try |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I have a project which contains several hundreds of tests.
Many of them do DB queries.
We migrated from jest when vitest was at version 0.34.6.
Vitest gave us a bit of trouble. It was tough to run stuff in series, so only one test accessed the db simultaneously.
This was no issue in jest.
I ended up running the tests with npx vitest --threads=false --single-thread=true
This seems to work just fine.
I recently discovered the latest version 1.2.2, and that the command line options were removed from the newer releases.
I tried adding
(Got type errors even though I find the properties in the UserConfig interface)
to the vitest.config.ts and run vitest with npx vitest --config ./vitest.config.ts but it did not work.
Is there a better way? I would hate to migrate back to jest.
Beta Was this translation helpful? Give feedback.
All reactions