You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/__snapshots__/loader.test.js.snap
+41-9
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,12 @@ Object {
50
50
}
51
51
`;
52
52
53
-
exports[`source-map-loader should process external SourceMaps: warnings 1`] =`Array []`;
53
+
exports[`source-map-loader should process external SourceMaps: warnings 1`] =`
54
+
Array [
55
+
"ModuleWarning: Module Warning (from \`replaced original path\`):
56
+
(Emitted value instead of an instance of Error) Cannot find source file 'external-source-map.txt': Error: Can't resolve './external-source-map.txt' in '/test/fixtures'",
57
+
]
58
+
`;
54
59
55
60
exports[`source-map-loader should process inlined SourceMaps with charset: css 1`] =`
56
61
"with SourceMap
@@ -64,7 +69,7 @@ Object {
64
69
"file": "charset-inline-source-map.js",
65
70
"mappings": "AAAA",
66
71
"sources": Array [
67
-
"charset-inline-source-map.txt",
72
+
"/test/fixtures/charset-inline-source-map.txt - (normalized for test)",
68
73
],
69
74
"sourcesContent": Array [
70
75
"with SourceMap",
@@ -96,7 +101,32 @@ Object {
96
101
}
97
102
`;
98
103
99
-
exports[`source-map-loader should process inlined SourceMaps: warnings 1`] =`Array []`;
104
+
exports[`source-map-loader should process inlined SourceMaps: warnings 1`] =`
105
+
Array [
106
+
"ModuleWarning: Module Warning (from \`replaced original path\`):
107
+
(Emitted value instead of an instance of Error) Cannot find source file 'inline-source-map.txt': Error: Can't resolve './inline-source-map.txt' in '/test/fixtures'",
108
+
]
109
+
`;
110
+
111
+
exports[`source-map-loader should reject http SourceMaps: css 1`] =`
"/test/fixtures/indexed-sourcemap/nested1.js - (normalized for test)",
151
181
"/different/root/nested2.js",
152
182
],
153
183
"sourcesContent": Array [
@@ -210,7 +240,12 @@ Object {
210
240
}
211
241
`;
212
242
213
-
exports[`source-map-loader should use last SourceMap directive: warnings 1`] =`Array []`;
243
+
exports[`source-map-loader should use last SourceMap directive: warnings 1`] =`
244
+
Array [
245
+
"ModuleWarning: Module Warning (from \`replaced original path\`):
246
+
(Emitted value instead of an instance of Error) Cannot find source file 'inline-source-map.txt': Error: Can't resolve './inline-source-map.txt' in '/test/fixtures'",
247
+
]
248
+
`;
214
249
215
250
exports[`source-map-loader should warn on invalid SourceMap: css 1`] =`
0 commit comments