Skip to content

Commit

Permalink
docs: fix sequence.hooks: 'stack' as default (#7492)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Feb 14, 2025
1 parent f31a07b commit 8f13825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2041,7 +2041,7 @@ Sets the randomization seed, if tests are running in random order.
#### sequence.hooks

- **Type**: `'stack' | 'list' | 'parallel'`
- **Default**: `'parallel'`
- **Default**: `'stack'`
- **CLI**: `--sequence.hooks=<value>`

Changes the order in which hooks are executed.
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ interface SequenceOptions {
* - `stack` will order "after" hooks in reverse order, "before" hooks will run sequentially
* - `list` will order hooks in the order they are defined
* - `parallel` will run hooks in a single group in parallel
* @default 'parallel'
* @default 'stack'
*/
hooks?: SequenceHooks
}
Expand Down

0 comments on commit 8f13825

Please sign in to comment.