Skip to content

Commit

Permalink
chore: Updated readme instructions for transformIgnorePatterns (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Weber <[email protected]>
  • Loading branch information
pan-kot and johannes-weber authored Jan 24, 2024
1 parent f339f33 commit f43751e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f43751e

Please sign in to comment.