GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • packages/vitest/src/node
    • pool.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/vitest/src/node/pool.ts‎

Copy file name to clipboardExpand all lines: packages/vitest/src/node/pool.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ function groupSpecs(specs: TestSpecification[], environments: Awaited<ReturnType
392392

393393
const order = spec.project.config.sequence.groupOrder
394394

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
396396
if (order === 0 && spec.project.config.fileParallelism === false) {
397397
return sequential.specs.push([spec])
398398
}
@@ -401,11 +401,11 @@ function groupSpecs(specs: TestSpecification[], environments: Awaited<ReturnType
401401
const isolate = spec.project.config.isolate
402402
groups[order] ||= { specs: [], maxWorkers }
403403

404-
// Multiple projects with different maxWorkers but same groupId
404+
// Multiple projects with different maxWorkers but same groupOrder
405405
if (groups[order].maxWorkers !== maxWorkers) {
406406
const last = groups[order].specs.at(-1)?.at(-1)?.project.name
407407

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.`)
409409
}
410410

411411
// Non-isolated single worker can receive all files at once

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.