diff --git a/docs/config/diff.md b/docs/config/diff.md index 39cd26537..5a9274f35 100644 --- a/docs/config/diff.md +++ b/docs/config/diff.md @@ -57,7 +57,7 @@ export default { ## diff.expand - **Type:** `boolean` -- **Default:** `true` +- **Default:** `false` - **CLI:** `--diff.expand=false` Expand all common lines. diff --git a/docs/guide/cli-generated.md b/docs/guide/cli-generated.md index e39550e09..397f8d8e4 100644 --- a/docs/guide/cli-generated.md +++ b/docs/guide/cli-generated.md @@ -547,7 +547,7 @@ Set the randomization seed. This option will have no effect if `--sequence.shuff - **CLI:** `--sequence.hooks ` - **Config:** [sequence.hooks](/config/sequence#sequence-hooks) -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"`) +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"`) ### sequence.setupFiles @@ -671,7 +671,7 @@ Placeholder for an empty first or last line (default: `""`) - **CLI:** `--diff.expand` - **Config:** [diff.expand](/config/diff#diff-expand) -Expand all common lines (default: `true`) +Expand all common lines (default: `false`) ### diff.includeChangeCounts @@ -692,7 +692,7 @@ Omit annotation lines from the output (default: `false`) - **CLI:** `--diff.printBasicPrototype` - **Config:** [diff.printBasicPrototype](/config/diff#diff-printbasicprototype) -Print basic prototype Object and Array (default: `true`) +Print basic prototype Object and Array (default: `false`) ### diff.maxDepth diff --git a/packages/vitest/src/node/cli/cli-config.ts b/packages/vitest/src/node/cli/cli-config.ts index d1773b54d..38f01f651 100644 --- a/packages/vitest/src/node/cli/cli-config.ts +++ b/packages/vitest/src/node/cli/cli-config.ts @@ -538,7 +538,7 @@ export const cliOptionsConfig: VitestCLIOptions = { }, hooks: { description: - '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"`)', + '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"`)', argument: '', }, setupFiles: { @@ -664,7 +664,7 @@ export const cliOptionsConfig: VitestCLIOptions = { argument: '', }, expand: { - description: 'Expand all common lines (default: `true`)', + description: 'Expand all common lines (default: `false`)', }, includeChangeCounts: { description: 'Include comparison counts in diff output (default: `false`)', @@ -673,7 +673,7 @@ export const cliOptionsConfig: VitestCLIOptions = { description: 'Omit annotation lines from the output (default: `false`)', }, printBasicPrototype: { - description: 'Print basic prototype Object and Array (default: `true`)', + description: 'Print basic prototype Object and Array (default: `false`)', }, maxDepth: { description: 'Limit the depth to recurse when printing nested objects (default: `20`)', diff --git a/packages/vitest/src/node/types/config.ts b/packages/vitest/src/node/types/config.ts index 584793f86..169cf1c2e 100644 --- a/packages/vitest/src/node/types/config.ts +++ b/packages/vitest/src/node/types/config.ts @@ -49,7 +49,7 @@ export type ApiConfig = Pick< /** * Allow any write operations from the API server. * - * @default true if `api.host` is exposed to network, false otherwise + * @default false if `api.host` is exposed to network, true otherwise */ allowWrite?: boolean /** @@ -57,7 +57,7 @@ export type ApiConfig = Pick< * If `api.host` is exposed to network and `allowWrite` is true, * anyone connected to the API server can run arbitrary code on your machine. * - * @default true if `api.host` is exposed to network, false otherwise + * @default false if `api.host` is exposed to network, true otherwise */ allowExec?: boolean }