diff --git a/docs/Configuration.md b/docs/Configuration.md index 360677c7379c..ee26b44262ec 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -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 @@ -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] Default: `["node_modules"]`