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 1212- ` [babel-plugin-jest-hoist] ` Expand list of whitelisted globals in global mocks ([ #8429 ] ( https://github.com/facebook/jest/pull/8429 )
1313- ` [jest-core] ` Make watch plugin initialization errors look nice ([ #8422 ] ( https://github.com/facebook/jest/pull/8422 ) )
1414- ` [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 ) )
1516
1617### Chore & Maintenance
1718
Original file line number Diff line number Diff line change @@ -426,6 +426,7 @@ describe('HasteMap', () => {
426426 const hasteMap = new HasteMap ( {
427427 ...defaultConfig ,
428428 computeSha1 : true ,
429+ mapper : file => [ file ] ,
429430 maxWorkers : 1 ,
430431 useWatchman,
431432 } ) ;
Original file line number Diff line number Diff line change @@ -139,10 +139,6 @@ export = function nodeCrawl(
139139 removedFiles : FileData ;
140140 hasteMap : InternalHasteMap ;
141141} > {
142- if ( options . mapper ) {
143- throw new Error ( `Option 'mapper' isn't supported by the Node crawler` ) ;
144- }
145-
146142 const {
147143 data,
148144 extensions,
You can’t perform that action at this time.
0 commit comments