Skip to content

Commit

Permalink
revert docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Nov 5, 2021
1 parent 3fdf0a5 commit 28635c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -905,11 +905,11 @@ If you need to restrict your test-runner to only run in serial rather than being

Default: `[]`

A list of paths to modules that run some code to configure or set up the testing environment before each test file in the suite is executed. Since every test file runs in its own environment, these scripts will be executed in the testing environment immediately before executing the test code itself.
A list of paths to modules that run some code to configure or set up the testing environment. Each setupFile will be run once per test file. Since every test runs in its own environment, these scripts will be executed in the testing environment immediately before executing the test code itself.

Your setup module may optionally export an async function. Jest will call the function and will await for the result. For instance, this might be used to fetch data asynchronously.

It is worth noting that `setupFiles` are executed _before_ [`setupFilesAfterEnv`](#setupfilesafterenv-array).
It's also worth noting that `setupFiles` will execute _before_ [`setupFilesAfterEnv`](#setupfilesafterenv-array).

### `setupFilesAfterEnv` \[array]

Expand Down

0 comments on commit 28635c8

Please sign in to comment.