You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Used Package Manager
npm
### Validations
- [X] Follow our [Code of Conduct](https://github.com/vitest-dev/vitest/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitest.dev/guide/).
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vitest/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vitest/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
My guess is that Vitest starts to look for test cases in the directory that you are running it (see default of test.includes) and reaches out of memory. As you were running Vitest in the root of your whole file system/, it read every single directory there were. Some of those contained so many files it caused an OOM.
Describe the bug
When I run vitest in docker, I face an OOM error
Reproduction
I copied the sample vitest project from https://vitest.dev/guide/ (this one: https://stackblitz.com/edit/vitest-dev-vitest-sc5cep?file=README.md&initialPath=__vitest__/), then added simple Dockerfile to run the tests in docker.
I've created a reproducible repo here - https://github.com/nick318/vitest-oom
Run
docker build .
to reproduce the issue.As a result, I face with the following:
System Info
The text was updated successfully, but these errors were encountered: