@@ -328,12 +328,12 @@ describe('transform', () => {
328328 ) ;
329329
330330 expect ( options . transform ) . toEqual ( [
331- [ DEFAULT_CSS_PATTERN , '/root/node_modules/jest-regex-util' ] ,
332- [ DEFAULT_JS_PATTERN , require . resolve ( 'babel-jest' ) ] ,
333- [ 'abs-path' , '/qux/quux' ] ,
331+ [ DEFAULT_CSS_PATTERN , '/root/node_modules/jest-regex-util' , { } ] ,
332+ [ DEFAULT_JS_PATTERN , require . resolve ( 'babel-jest' ) , { } ] ,
333+ [ 'abs-path' , '/qux/quux' , { } ] ,
334334 ] ) ;
335335 } ) ;
336- it ( "pulls in config if it's passed as an array" , ( ) => {
336+ it ( "pulls in config if it's passed as an array, and defaults to empty object " , ( ) => {
337337 const { options} = normalize (
338338 {
339339 rootDir : '/root/' ,
@@ -346,9 +346,9 @@ describe('transform', () => {
346346 { } ,
347347 ) ;
348348 expect ( options . transform ) . toEqual ( [
349- [ DEFAULT_CSS_PATTERN , '/root/node_modules/jest-regex-util' ] ,
349+ [ DEFAULT_CSS_PATTERN , '/root/node_modules/jest-regex-util' , { } ] ,
350350 [ DEFAULT_JS_PATTERN , require . resolve ( 'babel-jest' ) , { rootMode : 'upward' } ] ,
351- [ 'abs-path' , '/qux/quux' ] ,
351+ [ 'abs-path' , '/qux/quux' , { } ] ,
352352 ] ) ;
353353 } ) ;
354354} ) ;
@@ -822,7 +822,7 @@ describe('Upgrade help', () => {
822822 { } ,
823823 ) ;
824824
825- expect ( options . transform ) . toEqual ( [ [ '.*' , '/node_modules/bar/baz' ] ] ) ;
825+ expect ( options . transform ) . toEqual ( [ [ '.*' , '/node_modules/bar/baz' , { } ] ] ) ;
826826 expect ( options . transformIgnorePatterns ) . toEqual ( [
827827 joinForPattern ( 'bar' , 'baz' ) ,
828828 joinForPattern ( 'qux' , 'quux' ) ,
@@ -1152,8 +1152,8 @@ describe('preset', () => {
11521152 '/node_modules/b' ,
11531153 ] ) ;
11541154 expect ( options . transform ) . toEqual ( [
1155- [ 'a' , '/node_modules/a' ] ,
1156- [ 'b' , '/node_modules/b' ] ,
1155+ [ 'a' , '/node_modules/a' , { } ] ,
1156+ [ 'b' , '/node_modules/b' , { } ] ,
11571157 ] ) ;
11581158 } ) ;
11591159
@@ -1202,10 +1202,10 @@ describe('preset', () => {
12021202 ) ;
12031203
12041204 expect ( options . transform ) . toEqual ( [
1205- [ 'e' , '/node_modules/ee' ] ,
1206- [ 'b' , '/node_modules/bb' ] ,
1207- [ 'c' , '/node_modules/cc' ] ,
1208- [ 'a' , '/node_modules/aa' ] ,
1205+ [ 'e' , '/node_modules/ee' , { } ] ,
1206+ [ 'b' , '/node_modules/bb' , { } ] ,
1207+ [ 'c' , '/node_modules/cc' , { } ] ,
1208+ [ 'a' , '/node_modules/aa' , { } ] ,
12091209 ] ) ;
12101210 } ) ;
12111211
0 commit comments