[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix: correct option name `--no-parallelism` (#4831)

authored by

Yuta Nakamura and committed by
GitHub
(Dec 31, 2023, 12:43 PM +0200) 5053a5dd 09646f10

+6 -6
+1 -1
docs/guide/cli.md
··· 73 73 | `--poolOptions <options>` | Specify pool options | 74 74 | `--poolOptions.threads.isolate` | Isolate tests in threads pool (default: `true`) | 75 75 | `--poolOptions.forks.isolate` | Isolate tests in forks pool (default: `true`) | 76 - | `--fileParallelism` | Should all test files run in parallel. Use --no-parallelism to disable (default: true) | 76 + | `--fileParallelism` | Should all test files run in parallel. Use --no-file-parallelism to disable (default: true) | 77 77 | `--maxWorkers` | Maximum number of workers to run tests in | 78 78 | `--minWorkers` | Minimum number of workers to run tests in | 79 79 | `--silent` | Silent console output from tests |
+1 -1
docs/guide/debugging.md
··· 62 62 vitest --inspect-brk --pool forks --poolOptions.forks.singleFork 63 63 ``` 64 64 65 - If you are using Vitest 1.1 or higher, you can also just provide `--no-parallelism` flag: 65 + If you are using Vitest 1.1 or higher, you can also just provide `--no-file-parallelism` flag: 66 66 67 67 ```sh 68 68 # If pool is unknown
+3 -3
test/config/test/failures.test.ts
··· 33 33 test('inspect requires changing pool and singleThread/singleFork', async () => { 34 34 const { stderr } = await runVitest({ inspect: true }) 35 35 36 - expect(stderr).toMatch('Error: You cannot use --inspect without "--no-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"') 36 + expect(stderr).toMatch('Error: You cannot use --inspect without "--no-file-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"') 37 37 }) 38 38 39 39 test('inspect cannot be used with multi-threading', async () => { 40 40 const { stderr } = await runVitest({ inspect: true, pool: 'threads', poolOptions: { threads: { singleThread: false } } }) 41 41 42 - expect(stderr).toMatch('Error: You cannot use --inspect without "--no-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"') 42 + expect(stderr).toMatch('Error: You cannot use --inspect without "--no-file-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"') 43 43 }) 44 44 45 45 test('inspect-brk cannot be used with multi processing', async () => { 46 46 const { stderr } = await runVitest({ inspect: true, pool: 'forks', poolOptions: { forks: { singleFork: false } } }) 47 47 48 - expect(stderr).toMatch('Error: You cannot use --inspect without "--no-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"') 48 + expect(stderr).toMatch('Error: You cannot use --inspect without "--no-file-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"') 49 49 }) 50 50 51 51 test('c8 coverage provider is not supported', async () => {
+1 -1
packages/vitest/src/node/config.ts
··· 134 134 135 135 if (resolved.fileParallelism && !isSingleThread && !isSingleFork) { 136 136 const inspectOption = `--inspect${resolved.inspectBrk ? '-brk' : ''}` 137 - throw new Error(`You cannot use ${inspectOption} without "--no-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"`) 137 + throw new Error(`You cannot use ${inspectOption} without "--no-file-parallelism", "poolOptions.threads.singleThread" or "poolOptions.forks.singleFork"`) 138 138 } 139 139 } 140 140