From f43751ea49e6258f9c096c8e1f1fe30f4a525643 Mon Sep 17 00:00:00 2001 From: Andrei Zhaleznichenka Date: Wed, 24 Jan 2024 11:29:29 +0100 Subject: [PATCH] chore: Updated readme instructions for transformIgnorePatterns (#31) Co-authored-by: Johannes Weber --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4fb196b..ed5696f 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ merge operation extends the ignore paths, you need to make sure that the modules It means that Jest preset could not apply the configuration properly. -1. Check that you do not have `transformIgnorePatterns` in your custom configuration. If you do, it needs to **not ignore** the module paths defined in [jest-preset.js](./jest-preset.js). +1. Check if you have `transformIgnorePatterns` defined in your custom configuration. If so, it requires a manual merge with configuration defined in [jest-preset.js](./jest-preset.js). 2. Check if you are overwriting `transform` property. It should merge the new paths in, not replace. Check the "Advanced usage" section above for an example. ## Contributing