@@ -904,7 +904,7 @@ describe('The config-generator function', () => {
904
904
905
905
const actualConfig = configGenerator ( config ) ;
906
906
907
- const imagesRule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p ) $ / , actualConfig . module . rules ) . oneOf [ 1 ] ;
907
+ const imagesRule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p | a v i f ) $ / , actualConfig . module . rules ) . oneOf [ 1 ] ;
908
908
expect ( imagesRule . type ) . to . equal ( 'asset/resource' ) ;
909
909
expect ( imagesRule . generator ) . to . eql ( { filename : 'file.[hash][ext]' } ) ;
910
910
} ) ;
@@ -921,7 +921,7 @@ describe('The config-generator function', () => {
921
921
922
922
const actualConfig = configGenerator ( config ) ;
923
923
924
- const imagesRule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p ) $ / , actualConfig . module . rules ) . oneOf [ 1 ] ;
924
+ const imagesRule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p | a v i f ) $ / , actualConfig . module . rules ) . oneOf [ 1 ] ;
925
925
expect ( imagesRule . parser ) . to . eql ( { dataUrlCondition : { maxSize : 3000 } } ) ;
926
926
} ) ;
927
927
@@ -937,7 +937,7 @@ describe('The config-generator function', () => {
937
937
const actualConfig = configGenerator ( config ) ;
938
938
939
939
expect ( function ( ) {
940
- findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p ) $ / , actualConfig . module . rules ) ;
940
+ findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p | a v i f ) $ / , actualConfig . module . rules ) ;
941
941
} ) . to . throw ( ) ;
942
942
} ) ;
943
943
} ) ;
@@ -1229,7 +1229,7 @@ describe('The config-generator function', () => {
1229
1229
} ) ;
1230
1230
1231
1231
const webpackConfig = configGenerator ( config ) ;
1232
- const rule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p ) $ / , webpackConfig . module . rules ) . oneOf [ 1 ] ;
1232
+ const rule = findRule ( / \. ( p n g | j p g | j p e g | g i f | i c o | s v g | w e b p | a v i f ) $ / , webpackConfig . module . rules ) . oneOf [ 1 ] ;
1233
1233
1234
1234
expect ( rule . generator . filename ) . to . equal ( 'dirname-images/[hash:42][ext]' ) ;
1235
1235
} ) ;
0 commit comments