Skip to content

Commit

Permalink
Update docs/config/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
sheremet-va and antfu committed Jul 6, 2022
1 parent 900175c commit 8cade60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/index.md
Expand Up @@ -603,7 +603,7 @@ Sharding is happening before sorting, and only if `--shard` option is provided.
- **Type**: `boolean`
- **Default**: `false`

If you want tests to run randomly, you can enable it with this option, or CLI argument [`--shuffle`](/guide/cli).
If you want tests to run randomly, you can enable it with this option, or CLI argument [`--sequence.shuffle`](/guide/cli).

Vitest usually uses cache to sort tests, so long running tests start earlier - this makes tests run faster. If your tests will run in random order you will lose this performance improvement, but it may be useful to track tests that accidentally depend on another run previously.

Expand Down

0 comments on commit 8cade60

Please sign in to comment.