While running tests, it takes entire system resources. #1250
Closed
nishu-murmu
started this conversation in
General
Replies: 1 comment 1 reply
-
🤷 Probably could reduce the number of Vitest's workers. Looks like by default, it spawns the same number of child processes as you have CPU cores. Reducing this number would likely reduce memory consumption as well. https://vitest.dev/config/#pooloptions-forks-maxforks My suggestion would be to just run a single test if possible. Otherwise, if I need to run all tests, I want them to get done, so using all my CPU cores is fine. Just run all of them before opening a PR or wait for a maintainer to trigger CI to see full test results. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was working on some e2e testing.
I noticed that at my work PC, I was using Windows, while the tests were running, my vscode would get killed multiple times.
Then I did some work at home PC, where I used Linux, I noticed, it was taking almost entire resources.
@aklinker1 Any insights on this?
Beta Was this translation helpful? Give feedback.
All reactions