File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 40
40
41
41
* ` [docs] ` Describe the order of execution of describe and test blocks.
42
42
([ #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 ) )
43
44
44
45
## jest 22.0.4
45
46
Original file line number Diff line number Diff line change @@ -386,6 +386,9 @@ Example:
386
386
}
387
387
```
388
388
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
+
389
392
_ Note: If you provide module name without boundaries ` ^$ ` it may cause hard to
390
393
spot errors. E.g. ` relay ` will replace all modules which contain ` relay ` as a
391
394
substring in its name: ` relay ` , ` react-relay ` and ` graphql-relay ` will all be
You can’t perform that action at this time.
0 commit comments