Skip to content

Commit ca8edc0

Browse files
committed
Fix test case for changed error message
1 parent 6a7e79a commit ca8edc0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/Errors.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ describe("Errors", () => {
350350
(errors, warnings) => {
351351
expect(errors).toHaveLength(1);
352352
const messages = errors[0].split("\n");
353-
expect(messages[1]).toMatch(/^Module build failed:$/);
354-
expect(messages[2]).toMatch(/didn't return/);
353+
expect(messages[1]).toMatch(/^Module build failed: Final loader \(.+\) didn't return a Buffer or String/);
355354
done();
356355
}
357356
);

0 commit comments

Comments
 (0)