···7373| `--poolOptions <options>` | Specify pool options |
7474| `--poolOptions.threads.isolate` | Isolate tests in threads pool (default: `true`) |
7575| `--poolOptions.forks.isolate` | Isolate tests in forks pool (default: `true`) |
7676-| `--fileParallelism` | Should all test files run in parallel. Use --no-parallelism to disable (default: true) |
7676+| `--fileParallelism` | Should all test files run in parallel. Use --no-file-parallelism to disable (default: true) |
7777| `--maxWorkers` | Maximum number of workers to run tests in |
7878| `--minWorkers` | Minimum number of workers to run tests in |
7979| `--silent` | Silent console output from tests |
+1-1
docs/guide/debugging.md
···6262vitest --inspect-brk --pool forks --poolOptions.forks.singleFork
6363```
64646565-If you are using Vitest 1.1 or higher, you can also just provide `--no-parallelism` flag:
6565+If you are using Vitest 1.1 or higher, you can also just provide `--no-file-parallelism` flag:
66666767```sh
6868# If pool is unknown
+3-3
test/config/test/failures.test.ts
···3333test('inspect requires changing pool and singleThread/singleFork', async () => {
3434 const { stderr } = await runVitest({ inspect: true })
35353636- expect(stderr).toMatch('Error: You cannot use --inspect without "--no-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"')
3636+ expect(stderr).toMatch('Error: You cannot use --inspect without "--no-file-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"')
3737})
38383939test('inspect cannot be used with multi-threading', async () => {
4040 const { stderr } = await runVitest({ inspect: true, pool: 'threads', poolOptions: { threads: { singleThread: false } } })
41414242- expect(stderr).toMatch('Error: You cannot use --inspect without "--no-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"')
4242+ expect(stderr).toMatch('Error: You cannot use --inspect without "--no-file-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"')
4343})
44444545test('inspect-brk cannot be used with multi processing', async () => {
4646 const { stderr } = await runVitest({ inspect: true, pool: 'forks', poolOptions: { forks: { singleFork: false } } })
47474848- expect(stderr).toMatch('Error: You cannot use --inspect without "--no-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"')
4848+ expect(stderr).toMatch('Error: You cannot use --inspect without "--no-file-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"')
4949})
50505151test('c8 coverage provider is not supported', async () => {
+1-1
packages/vitest/src/node/config.ts
···134134135135 if (resolved.fileParallelism && !isSingleThread && !isSingleFork) {
136136 const inspectOption = `--inspect${resolved.inspectBrk ? '-brk' : ''}`
137137- throw new Error(`You cannot use ${inspectOption} without "--no-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"`)
137137+ throw new Error(`You cannot use ${inspectOption} without "--no-file-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"`)
138138 }
139139 }
140140