forked from webpack-contrib/worker-loader
/
publicPath.test.js.snap
105 lines (73 loc) · 5.04 KB
/
publicPath.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[`"publicPath" option should work and respect "filename" and "chunkFilename" option values: errors 1`] = `Array []`;
exports[`"publicPath" option should work and respect "filename" and "chunkFilename" option values: errors 2`] = `Array []`;
exports[`"publicPath" option should work and respect "filename" and "chunkFilename" option values: module 1`] = `
"export default function Worker_fn() {
return new Worker(__webpack_public_path__ + \\"other-static/js/worker.bundle.worker.js\\");
}
"
`;
exports[`"publicPath" option should work and respect "filename" and "chunkFilename" option values: module 2`] = `
"export default function Worker_fn() {
return new Worker(__webpack_public_path__ + \\"other-static/js/worker.worker.js\\");
}
"
`;
exports[`"publicPath" option should work and respect "filename" and "chunkFilename" option values: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"publicPath" option should work and respect "filename" and "chunkFilename" option values: result 2`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"publicPath" option should work and respect "filename" and "chunkFilename" option values: warnings 1`] = `Array []`;
exports[`"publicPath" option should work and respect "filename" and "chunkFilename" option values: warnings 2`] = `Array []`;
exports[`"publicPath" option should work and respect the "output.publicPath" option default value: errors 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "output.publicPath" option default value: module 1`] = `
"export default function Worker_fn() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"publicPath" option should work and respect the "output.publicPath" option default value: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"publicPath" option should work and respect the "output.publicPath" option default value: warnings 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "output.publicPath" option value ("function"): errors 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "output.publicPath" option value ("function"): module 1`] = `
"export default function Worker_fn() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"publicPath" option should work and respect the "output.publicPath" option value ("function"): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"publicPath" option should work and respect the "output.publicPath" option value ("function"): warnings 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "output.publicPath" option value ("string"): errors 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "output.publicPath" option value ("string"): module 1`] = `
"export default function Worker_fn() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"publicPath" option should work and respect the "output.publicPath" option value ("string"): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"publicPath" option should work and respect the "output.publicPath" option value ("string"): warnings 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "publicPath" option ("function"): errors 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "publicPath" option ("function"): module 1`] = `
"export default function Worker_fn() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"publicPath" option should work and respect the "publicPath" option ("function"): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"publicPath" option should work and respect the "publicPath" option ("function"): warnings 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "publicPath" option ("string"): errors 1`] = `Array []`;
exports[`"publicPath" option should work and respect the "publicPath" option ("string"): module 1`] = `
"export default function Worker_fn() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"publicPath" option should work and respect the "publicPath" option ("string"): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"publicPath" option should work and respect the "publicPath" option ("string"): warnings 1`] = `Array []`;
exports[`"publicPath" option should work and use "__webpack_public_path__" by default: errors 1`] = `Array []`;
exports[`"publicPath" option should work and use "__webpack_public_path__" by default: module 1`] = `
"export default function Worker_fn() {
return new Worker(__webpack_public_path__ + \\"test.worker.js\\");
}
"
`;
exports[`"publicPath" option should work and use "__webpack_public_path__" by default: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"publicPath" option should work and use "__webpack_public_path__" by default: warnings 1`] = `Array []`;