File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
packages/jest-haste-map/src Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 12
12
- ` [babel-plugin-jest-hoist] ` Expand list of whitelisted globals in global mocks ([ #8429 ] ( https://github.com/facebook/jest/pull/8429 )
13
13
- ` [jest-core] ` Make watch plugin initialization errors look nice ([ #8422 ] ( https://github.com/facebook/jest/pull/8422 ) )
14
14
- ` [jest-snapshot] ` Prevent inline snapshots from drifting when inline snapshots are updated ([ #8492 ] ( https://github.com/facebook/jest/pull/8492 ) )
15
+ - ` [jest-haste-map] ` Don't throw on missing mapper in Node crawler ([ #8558 ] ( https://github.com/facebook/jest/pull/8558 ) )
15
16
16
17
### Chore & Maintenance
17
18
Original file line number Diff line number Diff line change @@ -426,6 +426,7 @@ describe('HasteMap', () => {
426
426
const hasteMap = new HasteMap ( {
427
427
...defaultConfig ,
428
428
computeSha1 : true ,
429
+ mapper : file => [ file ] ,
429
430
maxWorkers : 1 ,
430
431
useWatchman,
431
432
} ) ;
Original file line number Diff line number Diff line change @@ -139,10 +139,6 @@ export = function nodeCrawl(
139
139
removedFiles : FileData ;
140
140
hasteMap : InternalHasteMap ;
141
141
} > {
142
- if ( options . mapper ) {
143
- throw new Error ( `Option 'mapper' isn't supported by the Node crawler` ) ;
144
- }
145
-
146
142
const {
147
143
data,
148
144
extensions,
You can’t perform that action at this time.
0 commit comments