forked from webpack-contrib/worker-loader
/
loader.test.js.snap
105 lines (73 loc) · 4.07 KB
/
loader.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`worker-loader should work and have the same base file name as the source files: errors 1`] = `Array []`;
exports[`worker-loader should work and have the same base file name as the source files: module 1`] = `
"export default function typeDetectionWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"TypeDetection.worker.js\\");
}
"
`;
exports[`worker-loader should work and have the same base file name as the source files: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`worker-loader should work and have the same base file name as the source files: warnings 1`] = `Array []`;
exports[`worker-loader should work and respect the "devtool" option ("false" value): errors 1`] = `Array []`;
exports[`worker-loader should work and respect the "devtool" option ("false" value): module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`worker-loader should work and respect the "devtool" option ("false" value): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`worker-loader should work and respect the "devtool" option ("false" value): warnings 1`] = `Array []`;
exports[`worker-loader should work and respect the "devtool" option ("source-map" value): errors 1`] = `Array []`;
exports[`worker-loader should work and respect the "devtool" option ("source-map" value): module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`worker-loader should work and respect the "devtool" option ("source-map" value): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`worker-loader should work and respect the "devtool" option ("source-map" value): warnings 1`] = `Array []`;
exports[`worker-loader should work with "externals": errors 1`] = `Array []`;
exports[`worker-loader should work with "externals": module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`worker-loader should work with "externals": result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`worker-loader should work with "externals": warnings 1`] = `Array []`;
exports[`worker-loader should work with WASM: errors 1`] = `Array []`;
exports[`worker-loader should work with WASM: module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`worker-loader should work with WASM: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":30}"`;
exports[`worker-loader should work with WASM: warnings 1`] = `Array []`;
exports[`worker-loader should work with async chunks: errors 1`] = `Array []`;
exports[`worker-loader should work with async chunks: module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`worker-loader should work with async chunks: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`worker-loader should work with async chunks: warnings 1`] = `Array []`;
exports[`worker-loader should work with inline syntax: errors 1`] = `Array []`;
exports[`worker-loader should work with inline syntax: module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`worker-loader should work with inline syntax: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`worker-loader should work with inline syntax: warnings 1`] = `Array []`;
exports[`worker-loader should work: errors 1`] = `Array []`;
exports[`worker-loader should work: module 1`] = `
"export default function testWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`worker-loader should work: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`worker-loader should work: warnings 1`] = `Array []`;