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
+43-1Lines changed: 43 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,54 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
+
exports[`check postcss versions to avoid using PostCSS 7 should emit a warning if postcss version is not explicitly specified when the loader is failed: errors 1`] =`
4
+
Array [
5
+
"ModuleBuildError: Module build failed (from \`replaced original path\`):
6
+
Error: Something went wrong.
7
+
at Processor.process (/test/loader.test.js:216:26)
8
+
at Object.loader (/src/index.js:106:30)",
9
+
]
10
+
`;
11
+
3
12
exports[`check postcss versions to avoid using PostCSS 7 should emit a warning if postcss version is not explicitly specified when the loader is failed: warnings 1`] =`
4
13
Array [
5
14
"ModuleWarning: Module Warning (from \`replaced original path\`):
6
-
(Emitted value instead of an instance of Error) Add postcss as project dependency. postcss is not a peer dependency for postcss-loader. Use \`npm install postcss\` or \`yarn add postcss\`",
15
+
Add postcss as project dependency. postcss is not a peer dependency for postcss-loader. Use \`npm install postcss\` or \`yarn add postcss\`",
16
+
]
17
+
`;
18
+
19
+
exports[`check postcss versions to avoid using PostCSS 7 should not show a warning if 'package.json' file was not found: errors 1`] =`
20
+
Array [
21
+
"ModuleBuildError: Module build failed (from \`replaced original path\`):
22
+
Error: Something went wrong.
23
+
at Processor.process (/test/loader.test.js:294:28)
24
+
at Object.loader (/src/index.js:106:30)",
7
25
]
8
26
`;
9
27
28
+
exports[`check postcss versions to avoid using PostCSS 7 should not show a warning if 'package.json' file was not found: warnings 1`] =`Array []`;
29
+
30
+
exports[`check postcss versions to avoid using PostCSS 7 should not show a warning if 'postcss' version is explicitly defined in 'dependencies': errors 1`] =`
31
+
Array [
32
+
"ModuleBuildError: Module build failed (from \`replaced original path\`):
33
+
Error: Something went wrong.
34
+
at Processor.process (/test/loader.test.js:242:26)
35
+
at Object.loader (/src/index.js:106:30)",
36
+
]
37
+
`;
38
+
39
+
exports[`check postcss versions to avoid using PostCSS 7 should not show a warning if 'postcss' version is explicitly defined in 'dependencies': warnings 1`] =`Array []`;
40
+
41
+
exports[`check postcss versions to avoid using PostCSS 7 should not show a warning if 'postcss' version is explicitly defined in 'devDependencies': errors 1`] =`
42
+
Array [
43
+
"ModuleBuildError: Module build failed (from \`replaced original path\`):
44
+
Error: Something went wrong.
45
+
at Processor.process (/test/loader.test.js:268:28)
46
+
at Object.loader (/src/index.js:106:30)",
47
+
]
48
+
`;
49
+
50
+
exports[`check postcss versions to avoid using PostCSS 7 should not show a warning if 'postcss' version is explicitly defined in 'devDependencies': warnings 1`] =`Array []`;
51
+
10
52
exports[`loader should emit asset using the "messages" API: errors 1`] =`Array []`;
11
53
12
54
exports[`loader should emit asset using the "messages" API: warnings 1`] =`Array []`;
0 commit comments