forked from webpack-contrib/worker-loader
/
esModule-option.test.js.snap
38 lines (27 loc) · 1.43 KB
/
esModule-option.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`"esModule" option should work and generate ES module syntax by default: errors 1`] = `Array []`;
exports[`"esModule" option should work and generate ES module syntax by default: module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"esModule" option should work and generate ES module syntax by default: warnings 1`] = `Array []`;
exports[`"esModule" option should work with "false" value: errors 1`] = `Array []`;
exports[`"esModule" option should work with "false" value: module 1`] = `
"module.exports = function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"esModule" option should work with "false" value: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"esModule" option should work with "false" value: warnings 1`] = `Array []`;
exports[`"esModule" option should work with "true" value: errors 1`] = `Array []`;
exports[`"esModule" option should work with "true" value: module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"esModule" option should work with "true" value: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"esModule" option should work with "true" value: warnings 1`] = `Array []`;