Skip to content

Commit

Permalink
fix: rerun tests, when setup file is edited (#2625)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
fix vitest-dev/vitest#2614
  • Loading branch information
mysteryven authored Jan 16, 2023
1 parent 42c29ff commit f6590f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ Silent console output from tests

Path to setup files. They will be run before each test file.

:::info
Changing setup files will trigger rerun of all tests.
:::

You can use `process.env.VITEST_POOL_ID` (integer-like string) inside to distinguish between threads (will always be `'1'`, if run with `threads: false`).

:::tip
Expand Down

0 comments on commit f6590f2

Please sign in to comment.