Skip to content

Commit

Permalink
chore: Document #7562
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jan 20, 2019
1 parent 64b3a9b commit eae9d45
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 @@ -373,6 +373,8 @@ _Note: A global setup module configured in a project (using multi-project runner

_Note: Any global variables that are defined through `globalSetup` can only be read in `globalTeardown`. You cannot retrieve globals defined here in your test suites._

_Note: While code transformation is applied to the linked setup-file, Jest will **not** transform any code in `node_modules`. This is due to the need to load the actual transformers (e.g. `babel` or `typescript`) to perform transformation._

Example:

```js
Expand All @@ -399,6 +401,8 @@ This option allows the use of a custom global teardown module which exports an a

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

_Node: The same caveat concerning transformation of `node_modules_ as for `globalSetup` applies to `globalTeardown`.

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

Default: `["node_modules"]`
Expand Down

0 comments on commit eae9d45

Please sign in to comment.