GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing vitest.dev — Vitest sequence
Options for how tests should be sorted. You can provide sequence options to CLI with dot notation: sh sequence.sequencer
A custom class that defines methods for sharding and sorting. You can extend Sharding is happening before sorting, and only if If sequence.groupOrder
Controls the order in which this project runs its tests when using multiple projects.
This setting only affects the order in which projects run, not the order of tests within a project. To control test isolation or the order of tests inside a project, use the ExampleConsider this example: ts Tests in these projects will run in this order: sequence.shuffle
If you want files and tests to run randomly, you can enable it with this option, or CLI argument Vitest usually uses cache to sort tests, so long-running tests start earlier, which makes tests run faster. If your files and tests run in random order, you will lose this performance improvement, but it may be useful to track tests that accidentally depend on another test run previously. sequence.shuffle.files
Whether to randomize files, be aware that long running tests will not start earlier if you enable this option. Because file ordering is shared across projects, this option is resolved from the root config only. A project can still randomize its own tests with sequence.shuffle.tests
Whether to randomize tests. sequence.concurrent
If you want tests to run in parallel, you can enable it with this option, or CLI argument WARNING When you run tests with sequence.seed
Sets the randomization seed, if tests are running in random order. sequence.hooks
Changes the order in which hooks are executed.
TIP This option doesn't affect sequence.setupFiles
Changes the order in which setup files are executed.
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |