From a7c15f2c827468c3df007c806118df5bd247fed6 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 20 Jan 2019 16:34:43 +0100 Subject: [PATCH] chore: Document #7562 --- docs/Configuration.md | 4 ++++ 1 file changed, 4 insertions(+) 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"]`