Skip to content

Commit

Permalink
Add documentation in configuration section
Browse files Browse the repository at this point in the history
  • Loading branch information
ranyitz committed Sep 15, 2018
1 parent 1a1412d commit fcc81e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,16 @@ Default: `undefined`

This option allows the use of a custom global setup module which exports an async function that is triggered once before all test suites. This function gets Jest's `globalConfig` object as a parameter.

Note: A global setup module configured in a project (using multi-project runner) will be triggered only when you run at list one test from this project.

### `globalTeardown` [string]

Default: `undefined`

This option allows the use of a custom global teardown module which exports an async function that is triggered once after all test suites. This function gets Jest's `globalConfig` object as a parameter.

Note: A global teardown module configured in a project (using multi-project runner) will be triggered only when you run at list one test from this project.

### `moduleDirectories` [array<string>]

Default: `["node_modules"]`
Expand Down

0 comments on commit fcc81e8

Please sign in to comment.