Skip to content

Commit 8f13825

Browse files
authored
docs: fix sequence.hooks: 'stack' as default (#7492)
1 parent f31a07b commit 8f13825

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/config/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ Sets the randomization seed, if tests are running in random order.
20412041
#### sequence.hooks
20422042

20432043
- **Type**: `'stack' | 'list' | 'parallel'`
2044-
- **Default**: `'parallel'`
2044+
- **Default**: `'stack'`
20452045
- **CLI**: `--sequence.hooks=<value>`
20462046

20472047
Changes the order in which hooks are executed.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ interface SequenceOptions {
9999
* - `stack` will order "after" hooks in reverse order, "before" hooks will run sequentially
100100
* - `list` will order hooks in the order they are defined
101101
* - `parallel` will run hooks in a single group in parallel
102-
* @default 'parallel'
102+
* @default 'stack'
103103
*/
104104
hooks?: SequenceHooks
105105
}

0 commit comments

Comments
 (0)