GeezerVison is showing github.com — fix(pool): rename `groupId` to `groupOrder` in error message (#8856) · vitest-dev/vitest@b9aabf4
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/vitest/src/node/pool.ts +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -392,7 +392,7 @@ function groupSpecs(specs: TestSpecification[], environments: Awaited<ReturnType |
392 | 392 |
|
393 | 393 | const order = spec.project.config.sequence.groupOrder |
394 | 394 |
|
395 | | - // Files that have disabled parallelism and default groupId are set into their own group |
| 395 | + // Files that have disabled parallelism and default groupOrder are set into their own group |
396 | 396 | if (order === 0 && spec.project.config.fileParallelism === false) { |
397 | 397 | return sequential.specs.push([spec]) |
398 | 398 | } |
@@ -401,11 +401,11 @@ function groupSpecs(specs: TestSpecification[], environments: Awaited<ReturnType |
401 | 401 | const isolate = spec.project.config.isolate |
402 | 402 | groups[order] ||= { specs: [], maxWorkers } |
403 | 403 |
|
404 | | - // Multiple projects with different maxWorkers but same groupId |
| 404 | + // Multiple projects with different maxWorkers but same groupOrder |
405 | 405 | if (groups[order].maxWorkers !== maxWorkers) { |
406 | 406 | const last = groups[order].specs.at(-1)?.at(-1)?.project.name |
407 | 407 |
|
408 | | - throw new Error(`Projects "${last}" and "${spec.project.name}" have different 'maxWorkers' but same 'sequence.groupId'.\nProvide unique 'sequence.groupId' for them.`) |
| 408 | + throw new Error(`Projects "${last}" and "${spec.project.name}" have different 'maxWorkers' but same 'sequence.groupOrder'.\nProvide unique 'sequence.groupOrder' for them.`) |
409 | 409 | } |
410 | 410 |
|
411 | 411 | // Non-isolated single worker can receive all files at once |
|