From 2d2548275120cc6f66054dca23b1dba39c494793 Mon Sep 17 00:00:00 2001 From: Ibrahim Elkamali Date: Thu, 24 Sep 2026 13:06:48 +0300 Subject: [PATCH 1/2] fix(cli): expose Vitest 5 options in test help --- .../snapshots/command_helper.md | 7 ++++- .../snapshots/command_tool_help.md | 7 ++++- packages/cli/src/help.ts | 27 ++++++++++++++++++- 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md index 84518852a3..895685b070 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md @@ -320,6 +320,7 @@ Options: --mode Override Vite mode (default: test or benchmark) --isolate Run every test file in isolation. To disable isolation, use --no-isolate (default: true) --globals Inject apis globally + --injectCjsGlobals Inject CommonJS variables (module, exports, require, __filename, __dirname) into every test module. To disable, use --no-inject-cjs-globals (default: true) --dom Mock browser API with happy-dom --browser Run tests in the browser. Equivalent to --browser.enabled (default: false). Use '--help --browser' for more info. --pool Specify pool, if not running in the browser (default: forks) @@ -342,6 +343,7 @@ Options: --hookTimeout Default hook timeout in milliseconds (default: 10000). Use 0 to disable timeout completely. --bail Stop test execution when given number of tests have failed (default: 0) --retry Retry the test specific number of times if it fails (default: 0). Use '--help --retry' for more info. + --repeats Repeat every test a specific number of times regardless of the result (default: 0) --diff DiffOptions object or a path to a module which exports DiffOptions object. Use '--help --diff' for more info. --exclude Additional file globs to be excluded from test --expandSnapshotDiff Show full diff when snapshot fails @@ -352,6 +354,8 @@ Options: --teardownTimeout Default timeout of a teardown function in milliseconds (default: 10000) --cache Enable cache. Use '--help --cache' for more info. --maxConcurrency Maximum number of concurrent tests and suites during test file execution (default: 5) + --fsModuleCache Cache transformed modules on the file system and reuse them between reruns (default: false) + --fsModuleCachePath Directory where the fsModuleCache is stored (default: node_modules/.vitest-cache) --expect Configuration options for expect() matches. Use '--help --expect' for more info. --printConsoleTrace Always print console stack traces --includeTaskLocation Collect test and suite locations in the location property @@ -362,9 +366,10 @@ Options: --standalone Start Vitest without running tests. Tests will be running only on change. If browser mode is enabled, the UI will be opened automatically. This option is ignored when CLI file filters are passed. (default: false) --mergeReports [path] Path to a blob reports directory. If this options is used, Vitest won't run any tests, it will only report previously recorded tests --listTags [type] List all available tags instead of running tests. --list-tags=json will output tags in JSON format, unless there are no tags. - --clearCache Delete all Vitest caches, including experimental.fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run. + --clearCache Delete all Vitest caches, including the fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run. --tagsFilter Run only tests with the specified tags. You can use logical operators && (and), || (or) and ! (not) to create complex expressions, see https://vitest.dev/guide/test-tags#syntax for more information. --strictTags Should Vitest throw an error if test has a tag that is not defined in the config. (default: true) + --sharedViteServer Let inline projects that don't modify the Vite config reuse the Vite server of the config that declares them. (default: true) --experimental Experimental features.. Use '--help --experimental' for more info. -h, --help Display this message diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_tool_help/snapshots/command_tool_help.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_tool_help/snapshots/command_tool_help.md index 0022cf03c6..ca36b372ca 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_tool_help/snapshots/command_tool_help.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_tool_help/snapshots/command_tool_help.md @@ -153,6 +153,7 @@ Options: --mode Override Vite mode (default: test or benchmark) --isolate Run every test file in isolation. To disable isolation, use --no-isolate (default: true) --globals Inject apis globally + --injectCjsGlobals Inject CommonJS variables (module, exports, require, __filename, __dirname) into every test module. To disable, use --no-inject-cjs-globals (default: true) --dom Mock browser API with happy-dom --browser Run tests in the browser. Equivalent to --browser.enabled (default: false). Use '--help --browser' for more info. --pool Specify pool, if not running in the browser (default: forks) @@ -175,6 +176,7 @@ Options: --hookTimeout Default hook timeout in milliseconds (default: 10000). Use 0 to disable timeout completely. --bail Stop test execution when given number of tests have failed (default: 0) --retry Retry the test specific number of times if it fails (default: 0). Use '--help --retry' for more info. + --repeats Repeat every test a specific number of times regardless of the result (default: 0) --diff DiffOptions object or a path to a module which exports DiffOptions object. Use '--help --diff' for more info. --exclude Additional file globs to be excluded from test --expandSnapshotDiff Show full diff when snapshot fails @@ -185,6 +187,8 @@ Options: --teardownTimeout Default timeout of a teardown function in milliseconds (default: 10000) --cache Enable cache. Use '--help --cache' for more info. --maxConcurrency Maximum number of concurrent tests and suites during test file execution (default: 5) + --fsModuleCache Cache transformed modules on the file system and reuse them between reruns (default: false) + --fsModuleCachePath Directory where the fsModuleCache is stored (default: node_modules/.vitest-cache) --expect Configuration options for expect() matches. Use '--help --expect' for more info. --printConsoleTrace Always print console stack traces --includeTaskLocation Collect test and suite locations in the location property @@ -195,9 +199,10 @@ Options: --standalone Start Vitest without running tests. Tests will be running only on change. If browser mode is enabled, the UI will be opened automatically. This option is ignored when CLI file filters are passed. (default: false) --mergeReports [path] Path to a blob reports directory. If this options is used, Vitest won't run any tests, it will only report previously recorded tests --listTags [type] List all available tags instead of running tests. --list-tags=json will output tags in JSON format, unless there are no tags. - --clearCache Delete all Vitest caches, including experimental.fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run. + --clearCache Delete all Vitest caches, including the fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run. --tagsFilter Run only tests with the specified tags. You can use logical operators && (and), || (or) and ! (not) to create complex expressions, see https://vitest.dev/guide/test-tags#syntax for more information. --strictTags Should Vitest throw an error if test has a tag that is not defined in the config. (default: true) + --sharedViteServer Let inline projects that don't modify the Vite config reuse the Vite server of the config that declares them. (default: true) --experimental Experimental features.. Use '--help --experimental' for more info. -h, --help Display this message diff --git a/packages/cli/src/help.ts b/packages/cli/src/help.ts index 7593b93f24..e8f8aa51fe 100644 --- a/packages/cli/src/help.ts +++ b/packages/cli/src/help.ts @@ -245,6 +245,11 @@ const commandHelpDocs = { 'Run every test file in isolation. To disable isolation, use --no-isolate (default: true)', }, { label: '--globals', description: 'Inject apis globally' }, + { + label: '--injectCjsGlobals', + description: + 'Inject CommonJS variables (module, exports, require, __filename, __dirname) into every test module. To disable, use --no-inject-cjs-globals (default: true)', + }, { label: '--dom', description: 'Mock browser API with happy-dom' }, { label: '--browser ', @@ -338,6 +343,11 @@ const commandHelpDocs = { description: "Retry the test specific number of times if it fails (default: 0). Use '--help --retry' for more info.", }, + { + label: '--repeats ', + description: + 'Repeat every test a specific number of times regardless of the result (default: 0)', + }, { label: '--diff ', description: @@ -383,6 +393,16 @@ const commandHelpDocs = { description: 'Maximum number of concurrent tests and suites during test file execution (default: 5)', }, + { + label: '--fsModuleCache', + description: + 'Cache transformed modules on the file system and reuse them between reruns (default: false)', + }, + { + label: '--fsModuleCachePath ', + description: + 'Directory where the fsModuleCache is stored (default: node_modules/.vitest-cache)', + }, { label: '--expect', description: @@ -426,7 +446,7 @@ const commandHelpDocs = { { label: '--clearCache', description: - 'Delete all Vitest caches, including experimental.fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run.', + 'Delete all Vitest caches, including the fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run.', }, { label: '--tagsFilter ', @@ -438,6 +458,11 @@ const commandHelpDocs = { description: 'Should Vitest throw an error if test has a tag that is not defined in the config. (default: true)', }, + { + label: '--sharedViteServer', + description: + "Let inline projects that don't modify the Vite config reuse the Vite server of the config that declares them. (default: true)", + }, { label: '--experimental ', description: "Experimental features.. Use '--help --experimental' for more info.", From bd70d45dd23ea16724104b548673c1f648c05a8d Mon Sep 17 00:00:00 2001 From: Ibrahim Elkamali Date: Thu, 24 Sep 2026 17:55:25 +0300 Subject: [PATCH 2/2] fix(cli): sync remaining Vitest 5 help text --- .../snapshots/command_helper.md | 14 +++++------- .../snapshots/command_tool_help.md | 14 +++++------- .../snapshots/global_cli_fallback.md | 21 +++++++++--------- packages/cli/src/help.ts | 22 +++++-------------- 4 files changed, 27 insertions(+), 44 deletions(-) diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md index 895685b070..8411b1a5b0 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_helper/snapshots/command_helper.md @@ -311,13 +311,13 @@ Options: --dir Base directory to scan for the test files --ui Enable UI --open Open UI automatically (default: !process.env.CI) - --api [port] Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204. Use '--help --api' for more info. + --api [port] Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or 63315 in browser mode. Use '--help --api' for more info. --silent [value] Silent console output from tests. Use 'passed-only' to see logs from failing tests only. --hideSkippedTests Hide logs for skipped tests --reporter Specify reporters (default, agent, minimal, blob, verbose, dot, json, tap, tap-flat, junit, tree, hanging-process, github-actions) --outputFile Write test results to a file when supporter reporter is also specified, use cac's dot notation for individual outputs of multiple reporters (example: --outputFile.tap=./tap.txt) --coverage Enable coverage report. Use '--help --coverage' for more info. - --mode Override Vite mode (default: test or benchmark) + --mode Override Vite mode (default: test) --isolate Run every test file in isolation. To disable isolation, use --no-isolate (default: true) --globals Inject apis globally --injectCjsGlobals Inject CommonJS variables (module, exports, require, __filename, __dirname) into every test module. To disable, use --no-inject-cjs-globals (default: true) @@ -349,7 +349,7 @@ Options: --expandSnapshotDiff Show full diff when snapshot fails --disableConsoleIntercept Disable automatic interception of console logging (default: false) --typecheck Enable typechecking alongside tests (default: false). Use '--help --typecheck' for more info. - --project 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. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern. + -p, --project 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. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern. A project runs if it matches no negated pattern and, when regular patterns are also given, matches at least one of them. --slowTestThreshold Threshold in milliseconds for a test or suite to be considered slow (default: 300) --teardownTimeout Default timeout of a teardown function in milliseconds (default: 10000) --cache Enable cache. Use '--help --cache' for more info. @@ -359,7 +359,7 @@ Options: --expect Configuration options for expect() matches. Use '--help --expect' for more info. --printConsoleTrace Always print console stack traces --includeTaskLocation Collect test and suite locations in the location property - --attachmentsDir The directory where attachments from context.annotate are stored in (default: .vitest-attachments) + --attachmentsDir The directory where attachments from context.annotate are stored in (default: .vitest/attachments) --run Disable watch mode --no-color Removes colors from the console output (default: true) --clearScreen Clear terminal screen when re-running tests during watch mode (default: true) @@ -373,14 +373,10 @@ Options: --experimental Experimental features.. Use '--help --experimental' for more info. -h, --help Display this message -Bench Options: - --compare Benchmark output file to compare against - --outputJson Benchmark output file - List Options: --json [true/path] Print collected tests as JSON or write to a file (Default: false) --filesOnly Print only test files with out the test cases - --staticParse Parse files statically instead of running them to collect tests (default: false) + --staticParse Parse files statically instead of running them to collect tests (default: true) --staticParseConcurrency How many tests to process at the same time (default: os.availableParallelism()) Examples: diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_tool_help/snapshots/command_tool_help.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_tool_help/snapshots/command_tool_help.md index ca36b372ca..64829afdc4 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_tool_help/snapshots/command_tool_help.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_tool_help/snapshots/command_tool_help.md @@ -144,13 +144,13 @@ Options: --dir Base directory to scan for the test files --ui Enable UI --open Open UI automatically (default: !process.env.CI) - --api [port] Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204. Use '--help --api' for more info. + --api [port] Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or 63315 in browser mode. Use '--help --api' for more info. --silent [value] Silent console output from tests. Use 'passed-only' to see logs from failing tests only. --hideSkippedTests Hide logs for skipped tests --reporter Specify reporters (default, agent, minimal, blob, verbose, dot, json, tap, tap-flat, junit, tree, hanging-process, github-actions) --outputFile Write test results to a file when supporter reporter is also specified, use cac's dot notation for individual outputs of multiple reporters (example: --outputFile.tap=./tap.txt) --coverage Enable coverage report. Use '--help --coverage' for more info. - --mode Override Vite mode (default: test or benchmark) + --mode Override Vite mode (default: test) --isolate Run every test file in isolation. To disable isolation, use --no-isolate (default: true) --globals Inject apis globally --injectCjsGlobals Inject CommonJS variables (module, exports, require, __filename, __dirname) into every test module. To disable, use --no-inject-cjs-globals (default: true) @@ -182,7 +182,7 @@ Options: --expandSnapshotDiff Show full diff when snapshot fails --disableConsoleIntercept Disable automatic interception of console logging (default: false) --typecheck Enable typechecking alongside tests (default: false). Use '--help --typecheck' for more info. - --project 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. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern. + -p, --project 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. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern. A project runs if it matches no negated pattern and, when regular patterns are also given, matches at least one of them. --slowTestThreshold Threshold in milliseconds for a test or suite to be considered slow (default: 300) --teardownTimeout Default timeout of a teardown function in milliseconds (default: 10000) --cache Enable cache. Use '--help --cache' for more info. @@ -192,7 +192,7 @@ Options: --expect Configuration options for expect() matches. Use '--help --expect' for more info. --printConsoleTrace Always print console stack traces --includeTaskLocation Collect test and suite locations in the location property - --attachmentsDir The directory where attachments from context.annotate are stored in (default: .vitest-attachments) + --attachmentsDir The directory where attachments from context.annotate are stored in (default: .vitest/attachments) --run Disable watch mode --no-color Removes colors from the console output (default: true) --clearScreen Clear terminal screen when re-running tests during watch mode (default: true) @@ -206,14 +206,10 @@ Options: --experimental Experimental features.. Use '--help --experimental' for more info. -h, --help Display this message -Bench Options: - --compare Benchmark output file to compare against - --outputJson Benchmark output file - List Options: --json [true/path] Print collected tests as JSON or write to a file (Default: false) --filesOnly Print only test files with out the test cases - --staticParse Parse files statically instead of running them to collect tests (default: false) + --staticParse Parse files statically instead of running them to collect tests (default: true) --staticParseConcurrency How many tests to process at the same time (default: os.availableParallelism()) Examples: diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/global_cli_fallback/snapshots/global_cli_fallback.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/global_cli_fallback/snapshots/global_cli_fallback.md index 2568aa1dcd..002177b3c3 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/global_cli_fallback/snapshots/global_cli_fallback.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/global_cli_fallback/snapshots/global_cli_fallback.md @@ -114,15 +114,16 @@ Options: --dir Base directory to scan for the test files --ui Enable UI --open Open UI automatically (default: !process.env.CI) - --api [port] Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204. Use '--help --api' for more info. + --api [port] Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or 63315 in browser mode. Use '--help --api' for more info. --silent [value] Silent console output from tests. Use 'passed-only' to see logs from failing tests only. --hideSkippedTests Hide logs for skipped tests --reporter Specify reporters (default, agent, minimal, blob, verbose, dot, json, tap, tap-flat, junit, tree, hanging-process, github-actions) --outputFile Write test results to a file when supporter reporter is also specified, use cac's dot notation for individual outputs of multiple reporters (example: --outputFile.tap=./tap.txt) --coverage Enable coverage report. Use '--help --coverage' for more info. - --mode Override Vite mode (default: test or benchmark) + --mode Override Vite mode (default: test) --isolate Run every test file in isolation. To disable isolation, use --no-isolate (default: true) --globals Inject apis globally + --injectCjsGlobals Inject CommonJS variables (module, exports, require, __filename, __dirname) into every test module. To disable, use --no-inject-cjs-globals (default: true) --dom Mock browser API with happy-dom --browser Run tests in the browser. Equivalent to --browser.enabled (default: false). Use '--help --browser' for more info. --pool Specify pool, if not running in the browser (default: forks) @@ -145,40 +146,40 @@ Options: --hookTimeout Default hook timeout in milliseconds (default: 10000). Use 0 to disable timeout completely. --bail Stop test execution when given number of tests have failed (default: 0) --retry Retry the test specific number of times if it fails (default: 0). Use '--help --retry' for more info. + --repeats Repeat every test a specific number of times regardless of the result (default: 0) --diff DiffOptions object or a path to a module which exports DiffOptions object. Use '--help --diff' for more info. --exclude Additional file globs to be excluded from test --expandSnapshotDiff Show full diff when snapshot fails --disableConsoleIntercept Disable automatic interception of console logging (default: false) --typecheck Enable typechecking alongside tests (default: false). Use '--help --typecheck' for more info. - --project 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. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern. + -p, --project 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. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern. A project runs if it matches no negated pattern and, when regular patterns are also given, matches at least one of them. --slowTestThreshold Threshold in milliseconds for a test or suite to be considered slow (default: 300) --teardownTimeout Default timeout of a teardown function in milliseconds (default: 10000) --cache Enable cache. Use '--help --cache' for more info. --maxConcurrency Maximum number of concurrent tests and suites during test file execution (default: 5) + --fsModuleCache Cache transformed modules on the file system and reuse them between reruns (default: false) + --fsModuleCachePath Directory where the fsModuleCache is stored (default: node_modules/.vitest-cache) --expect Configuration options for expect() matches. Use '--help --expect' for more info. --printConsoleTrace Always print console stack traces --includeTaskLocation Collect test and suite locations in the location property - --attachmentsDir The directory where attachments from context.annotate are stored in (default: .vitest-attachments) + --attachmentsDir The directory where attachments from context.annotate are stored in (default: .vitest/attachments) --run Disable watch mode --no-color Removes colors from the console output (default: true) --clearScreen Clear terminal screen when re-running tests during watch mode (default: true) --standalone Start Vitest without running tests. Tests will be running only on change. If browser mode is enabled, the UI will be opened automatically. This option is ignored when CLI file filters are passed. (default: false) --mergeReports [path] Path to a blob reports directory. If this options is used, Vitest won't run any tests, it will only report previously recorded tests --listTags [type] List all available tags instead of running tests. --list-tags=json will output tags in JSON format, unless there are no tags. - --clearCache Delete all Vitest caches, including experimental.fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run. + --clearCache Delete all Vitest caches, including the fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run. --tagsFilter Run only tests with the specified tags. You can use logical operators && (and), || (or) and ! (not) to create complex expressions, see https://vitest.dev/guide/test-tags#syntax for more information. --strictTags Should Vitest throw an error if test has a tag that is not defined in the config. (default: true) + --sharedViteServer Let inline projects that don't modify the Vite config reuse the Vite server of the config that declares them. (default: true) --experimental Experimental features.. Use '--help --experimental' for more info. -h, --help Display this message -Bench Options: - --compare Benchmark output file to compare against - --outputJson Benchmark output file - List Options: --json [true/path] Print collected tests as JSON or write to a file (Default: false) --filesOnly Print only test files with out the test cases - --staticParse Parse files statically instead of running them to collect tests (default: false) + --staticParse Parse files statically instead of running them to collect tests (default: true) --staticParseConcurrency How many tests to process at the same time (default: os.availableParallelism()) Examples: diff --git a/packages/cli/src/help.ts b/packages/cli/src/help.ts index e8f8aa51fe..901a15152c 100644 --- a/packages/cli/src/help.ts +++ b/packages/cli/src/help.ts @@ -213,7 +213,7 @@ const commandHelpDocs = { { label: '--api [port]', description: - "Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204. Use '--help --api' for more info.", + "Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or 63315 in browser mode. Use '--help --api' for more info.", }, { label: '--silent [value]', @@ -237,7 +237,7 @@ const commandHelpDocs = { }, { label: '--mode ', - description: 'Override Vite mode (default: test or benchmark)', + description: 'Override Vite mode (default: test)', }, { label: '--isolate', @@ -371,9 +371,9 @@ const commandHelpDocs = { "Enable typechecking alongside tests (default: false). Use '--help --typecheck' for more info.", }, { - label: '--project ', + label: '-p, --project ', 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. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern.', + '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. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern. A project runs if it matches no negated pattern and, when regular patterns are also given, matches at least one of them.', }, { label: '--slowTestThreshold ', @@ -416,7 +416,7 @@ const commandHelpDocs = { { label: '--attachmentsDir ', description: - 'The directory where attachments from context.annotate are stored in (default: .vitest-attachments)', + 'The directory where attachments from context.annotate are stored in (default: .vitest/attachments)', }, { label: '--run', description: 'Disable watch mode' }, { @@ -470,16 +470,6 @@ const commandHelpDocs = { { label: '-h, --help', description: 'Display this message' }, ], }, - { - title: 'Bench Options', - rows: [ - { - label: '--compare ', - description: 'Benchmark output file to compare against', - }, - { label: '--outputJson ', description: 'Benchmark output file' }, - ], - }, { title: 'List Options', rows: [ @@ -491,7 +481,7 @@ const commandHelpDocs = { { label: '--staticParse', description: - 'Parse files statically instead of running them to collect tests (default: false)', + 'Parse files statically instead of running them to collect tests (default: true)', }, { label: '--staticParseConcurrency ',