File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 4040
4141* ` [docs] ` Describe the order of execution of describe and test blocks.
4242 ([ #5217 ] ( https://github.com/facebook/jest/pull/5217 ) , [ #5238 ] ( https://github.com/facebook/jest/pull/5238 ) )
43+ * ` [docs] ` Add a note on ` moduleNameMapper ` ordering. ([ #5249 ] ( https://github.com/facebook/jest/pull/5249 ) )
4344
4445## jest 22.0.4
4546
Original file line number Diff line number Diff line change @@ -386,6 +386,9 @@ Example:
386386}
387387```
388388
389+ The order in which the mappings are defined matters. Patterns are checked one
390+ by one until one fits. The most specific rule should be listed first.
391+
389392_ Note: If you provide module name without boundaries ` ^$ ` it may cause hard to
390393spot errors. E.g. ` relay ` will replace all modules which contain ` relay ` as a
391394substring in its name: ` relay ` , ` react-relay ` and ` graphql-relay ` will all be
You can’t perform that action at this time.
0 commit comments