Skip to content

Commit ba7ae53

Browse files
authored
docs: rewrite mention of old --no-threads option (#4978)
1 parent 21f5744 commit ba7ae53

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/guide/features.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ Out-of-the-box ES Module / TypeScript / JSX support / PostCSS
3232

3333
## Threads
3434

35-
Workers multi-threading via [Tinypool](https://github.com/tinylibs/tinypool) (a lightweight fork of [Piscina](https://github.com/piscinajs/piscina)), allowing tests to run simultaneously. Threads are enabled by default in Vitest, and can be disabled by passing `--no-threads` in the CLI.
35+
By default Vitest runs tests in multiple threads using [`node:worker_threads`](https://nodejs.org/api/worker_threads.html) via [Tinypool](https://github.com/tinylibs/tinypool) (a lightweight fork of [Piscina](https://github.com/piscinajs/piscina)), allowing tests to run simultaneously. If your tests are running code that is not compatible with multi-threading, you can switch to [`--pool=forks`](/config/#pool-1-0-0) which runs tests in multiple processes using [`node:child_process`](https://nodejs.org/api/child_process.html) via Tinypool.
36+
37+
To run tests in a single thread or process, see [`poolOptions`](/config/#pooloptions-1-0-0).
3638

3739
Vitest also isolates each file's environment so env mutations in one file don't affect others. Isolation can be disabled by passing `--no-isolate` to the CLI (trading correctness for run performance).
3840

0 commit comments

Comments
 (0)