Skip to content

Commit abd66f4

Browse files
benbankesweaverryan
authored andcommitted
Also modify the test images rule
1 parent 2d0c725 commit abd66f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/config-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ describe('The config-generator function', () => {
881881

882882
const actualConfig = configGenerator(config);
883883

884-
const imagesRule = findRule(/\.(png|jpg|jpeg|gif|ico|svg|webp)$/, actualConfig.module.rules).oneOf[1];
884+
const imagesRule = findRule(/\.(png|jpg|jpeg|gif|ico|svg|webp|avif)$/, actualConfig.module.rules).oneOf[1];
885885
expect(imagesRule.type).to.equal('asset/resource');
886886
expect(imagesRule.generator).to.eql({ filename: 'images/[name].[hash:8][ext]' });
887887
expect(imagesRule.parser).to.eql({});

0 commit comments

Comments
 (0)