Skip to content

Commit 56824d4

Browse files
test: fix
1 parent 90f6752 commit 56824d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/minify-option.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ describe("minify option", () => {
869869

870870
const stats = await compile(compiler);
871871

872-
expect(getErrors(stats)).toMatchSnapshot("errors");
872+
expect(stats.compilation.errors[0].message).toContain("Unexpected token");
873873
expect(getWarnings(stats)).toMatchSnapshot("warnings");
874874
});
875875

0 commit comments

Comments
 (0)