Skip to content

Commit 0c931b4

Browse files
committed
chore: update snapshots
1 parent 9e6a253 commit 0c931b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/__snapshots__/loader.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ exports[`loader should throw an error on existing module local value in the glob
101101

102102
exports[`loader should throw an error on existing module local value in the global object: warnings 1`] = `[]`;
103103

104+
exports[`loader should throw an error on existing nested value in the global object: errors 1`] = `[]`;
105+
104106
exports[`loader should throw an error on existing nested value in the global object: module 1`] = `
105107
"var ___EXPOSE_LOADER_IMPORT___ = require("-!./global-commonjs2-single-export.js");
106108
var ___EXPOSE_LOADER_GET_GLOBAL_THIS___ = require("../../src/runtime/getGlobalThis.js");
@@ -114,6 +116,8 @@ module.exports = ___EXPOSE_LOADER_IMPORT___;
114116
"
115117
`;
116118

119+
exports[`loader should throw an error on existing nested value in the global object: warnings 1`] = `[]`;
120+
117121
exports[`loader should throw an error on existing value in the global object in the "development" mode: errors 1`] = `[]`;
118122

119123
exports[`loader should throw an error on existing value in the global object in the "development" mode: module 1`] = `

test/loader.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ describe("loader", () => {
601601
).toMatchSnapshot("module");
602602
expect(() =>
603603
execute(readAsset("main.bundle.js", compiler, stats)),
604-
).toThrowError(/Cannot read/);
604+
).toThrow(/Cannot read/);
605605
expect(getErrors(stats)).toMatchSnapshot("errors");
606606
expect(getWarnings(stats)).toMatchSnapshot("warnings");
607607
});

0 commit comments

Comments
 (0)