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
+79-9Lines changed: 79 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,71 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
+
exports[`source-map-loader should add only valid \`sources\` to dependencies: css 1`] =`
4
+
"// Dependencies
5
+
"
6
+
`;
7
+
8
+
exports[`source-map-loader should add only valid \`sources\` to dependencies: errors 1`] =`Array []`;
9
+
10
+
exports[`source-map-loader should add only valid \`sources\` to dependencies: map 1`] =`
11
+
Object {
12
+
"file": "inline-sources.js",
13
+
"mappings": "AAAA",
14
+
"sources": Array [
15
+
"/test/fixtures/data/relative-sourceRoot-source-map.txt - (normalized for test)",
16
+
"./data/not-found.txt",
17
+
"",
18
+
"data:invalid;A;a",
19
+
],
20
+
"sourcesContent": Array [
21
+
"with SourceMap
22
+
// comment",
23
+
"",
24
+
"some kind content",
25
+
"",
26
+
],
27
+
"version": 3,
28
+
}
29
+
`;
30
+
31
+
exports[`source-map-loader should add only valid \`sources\` to dependencies: warnings 1`] =`
32
+
Array [
33
+
"ModuleWarning: Module Warning (from \`replaced original path\`):
34
+
Failed to parse source map from \\"data\\" URL: data:invalid;A;a",
35
+
"ModuleWarning: Module Warning (from \`replaced original path\`):
36
+
Failed to parse source map from '/test/fixtures/data/not-found.txt' file: Error: ENOENT: no such file or directory, open '/test/fixtures/data/not-found.txt'",
37
+
]
38
+
`;
39
+
40
+
exports[`source-map-loader should add only valid \`sources\` with \`sourceContent\` to dependencies: css 1`] =`
41
+
"// Dependencies
42
+
"
43
+
`;
44
+
45
+
exports[`source-map-loader should add only valid \`sources\` with \`sourceContent\` to dependencies: errors 1`] =`Array []`;
46
+
47
+
exports[`source-map-loader should add only valid \`sources\` with \`sourceContent\` to dependencies: map 1`] =`
48
+
Object {
49
+
"file": "inline-sources.js",
50
+
"mappings": "AAAA",
51
+
"sources": Array [
52
+
"/test/fixtures/data/relative-sourceRoot-source-map.txt - (normalized for test)",
53
+
"/test/fixtures/data/not-found.txt - (normalized for test)",
54
+
"",
55
+
"",
56
+
],
57
+
"sourcesContent": Array [
58
+
"foo",
59
+
"bar",
60
+
"",
61
+
"baz",
62
+
],
63
+
"version": 3,
64
+
}
65
+
`;
66
+
67
+
exports[`source-map-loader should add only valid \`sources\` with \`sourceContent\` to dependencies: warnings 1`] =`Array []`;
68
+
3
69
exports[`source-map-loader should allow to filter warnings: css 1`] =`
0 commit comments