Skip to content

Commit 597df56

Browse files
hi-ogawacodex
andauthored
docs: correct stale config defaults (#11354)
Co-authored-by: Hiroshi Ogawa <[email protected]> Co-authored-by: Codex (GPT-5) <[email protected]>
1 parent ea1c44f commit 597df56

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎docs/config/diff.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default {
5757
## diff.expand
5858

5959
- **Type:** `boolean`
60-
- **Default:** `true`
60+
- **Default:** `false`
6161
- **CLI:** `--diff.expand=false`
6262

6363
Expand all common lines.

‎docs/guide/cli-generated.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ Set the randomization seed. This option will have no effect if `--sequence.shuff
547547
- **CLI:** `--sequence.hooks <order>`
548548
- **Config:** [sequence.hooks](/config/sequence#sequence-hooks)
549549

550-
Changes the order in which hooks are executed. Accepted values are: "stack", "list" and "parallel". Visit [`sequence.hooks`](/config/sequence#sequence-hooks) for more information (default: `"parallel"`)
550+
Changes the order in which hooks are executed. Accepted values are: "stack", "list" and "parallel". Visit [`sequence.hooks`](/config/sequence#sequence-hooks) for more information (default: `"stack"`)
551551

552552
### sequence.setupFiles
553553

@@ -671,7 +671,7 @@ Placeholder for an empty first or last line (default: `""`)
671671
- **CLI:** `--diff.expand`
672672
- **Config:** [diff.expand](/config/diff#diff-expand)
673673

674-
Expand all common lines (default: `true`)
674+
Expand all common lines (default: `false`)
675675

676676
### diff.includeChangeCounts
677677

@@ -692,7 +692,7 @@ Omit annotation lines from the output (default: `false`)
692692
- **CLI:** `--diff.printBasicPrototype`
693693
- **Config:** [diff.printBasicPrototype](/config/diff#diff-printbasicprototype)
694694

695-
Print basic prototype Object and Array (default: `true`)
695+
Print basic prototype Object and Array (default: `false`)
696696

697697
### diff.maxDepth
698698

‎packages/vitest/src/node/cli/cli-config.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export const cliOptionsConfig: VitestCLIOptions = {
538538
},
539539
hooks: {
540540
description:
541-
'Changes the order in which hooks are executed. Accepted values are: "stack", "list" and "parallel". Visit [`sequence.hooks`](https://vitest.dev/config/sequence#sequence-hooks) for more information (default: `"parallel"`)',
541+
'Changes the order in which hooks are executed. Accepted values are: "stack", "list" and "parallel". Visit [`sequence.hooks`](https://vitest.dev/config/sequence#sequence-hooks) for more information (default: `"stack"`)',
542542
argument: '<order>',
543543
},
544544
setupFiles: {
@@ -664,7 +664,7 @@ export const cliOptionsConfig: VitestCLIOptions = {
664664
argument: '<placeholder>',
665665
},
666666
expand: {
667-
description: 'Expand all common lines (default: `true`)',
667+
description: 'Expand all common lines (default: `false`)',
668668
},
669669
includeChangeCounts: {
670670
description: 'Include comparison counts in diff output (default: `false`)',
@@ -673,7 +673,7 @@ export const cliOptionsConfig: VitestCLIOptions = {
673673
description: 'Omit annotation lines from the output (default: `false`)',
674674
},
675675
printBasicPrototype: {
676-
description: 'Print basic prototype Object and Array (default: `true`)',
676+
description: 'Print basic prototype Object and Array (default: `false`)',
677677
},
678678
maxDepth: {
679679
description: 'Limit the depth to recurse when printing nested objects (default: `20`)',

‎packages/vitest/src/node/types/config.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ export type ApiConfig = Pick<
4949
/**
5050
* Allow any write operations from the API server.
5151
*
52-
* @default true if `api.host` is exposed to network, false otherwise
52+
* @default false if `api.host` is exposed to network, true otherwise
5353
*/
5454
allowWrite?: boolean
5555
/**
5656
* Allow running test files via the API.
5757
* If `api.host` is exposed to network and `allowWrite` is true,
5858
* anyone connected to the API server can run arbitrary code on your machine.
5959
*
60-
* @default true if `api.host` is exposed to network, false otherwise
60+
* @default false if `api.host` is exposed to network, true otherwise
6161
*/
6262
allowExec?: boolean
6363
}

0 commit comments

Comments
 (0)