[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: repeatable `--project` option (#5265)

authored by

Han and committed by
GitHub
(Feb 22, 2024, 1:27 PM +0100) d1a06730 424f3ac0

+10
+9
test/core/test/cli-test.test.ts
··· 321 321 expect(() => { 322 322 parseCLI('node --test --coverage --browser --typecheck') 323 323 }).toThrowError(`Expected "vitest" as the first argument, received "node"`) 324 + 325 + expect(parseCLI('vitest --project=space_1 --project=space_2')).toEqual({ 326 + filter: [], 327 + options: { 328 + 'project': ['space_1', 'space_2'], 329 + '--': [], 330 + 'color': true, 331 + }, 332 + }) 324 333 })
+1
packages/vitest/src/node/cli/cli-config.ts
··· 526 526 project: { 527 527 description: 'The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: --project=1 --project=2', 528 528 argument: '<name>', 529 + array: true, 529 530 }, 530 531 slowTestThreshold: { 531 532 description: 'Threshold in milliseconds for a test to be considered slow (default: 300)',