|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`"esModule" option should emit error when class has unsupported name: errors 1`] = ` |
4 |
| -Array [ |
5 |
| - "ModuleParseError: Module parse failed: Unexpected keyword 'class' (7:13) |
6 |
| -File was processed with these loaders:", |
7 |
| -] |
8 |
| -`; |
9 |
| - |
10 |
| -exports[`"esModule" option should emit error when class has unsupported name: warnings 1`] = `Array []`; |
11 |
| - |
12 |
| -exports[`"esModule" option should emit error when namedExport true && esModule false: errors 1`] = ` |
13 |
| -Array [ |
14 |
| - "ModuleError: Module Error (from \`replaced original path\`): |
15 |
| -\`Options.module.namedExport\` cannot be used without \`options.esModule\`", |
16 |
| -] |
17 |
| -`; |
18 |
| - |
19 |
| -exports[`"esModule" option should work js template with "namedExport" option: errors 1`] = `Array []`; |
20 |
| - |
21 |
| -exports[`"esModule" option should work js template with "namedExport" option: module 1`] = ` |
22 |
| -"// Imports |
23 |
| -import ___CSS_LOADER_API_IMPORT___ from \\"../../../../../src/runtime/api.js\\"; |
24 |
| -var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false); |
25 |
| -// Module |
26 |
| -___CSS_LOADER_EXPORT___.push([module.id, \\".header-baz {\\\\n color: red;\\\\n}\\\\n\\\\n.body {\\\\n color: coral;\\\\n}\\\\n\\\\n.footer {\\\\n color: blue;\\\\n}\\\\n\\", \\"\\"]); |
27 |
| -// Exports |
28 |
| -export const headerBaz = \\"header-baz\\"; |
29 |
| -export const body = \\"body\\"; |
30 |
| -export const footer = \\"footer\\"; |
31 |
| -
|
32 |
| -export default ___CSS_LOADER_EXPORT___; |
33 |
| -" |
34 |
| -`; |
35 |
| - |
36 |
| -exports[`"esModule" option should work js template with "namedExport" option: result 1`] = ` |
37 |
| -Object { |
38 |
| - "css": Array [ |
39 |
| - Array [ |
40 |
| - "./es-module/named/template/index.css", |
41 |
| - ".header-baz { |
42 |
| - color: red; |
43 |
| -} |
44 |
| -
|
45 |
| -.body { |
46 |
| - color: coral; |
47 |
| -} |
48 |
| -
|
49 |
| -.footer { |
50 |
| - color: blue; |
51 |
| -} |
52 |
| -", |
53 |
| - "", |
54 |
| - ], |
55 |
| - ], |
56 |
| - "html": " |
57 |
| -<div class=\\"header-baz\\"> |
58 |
| -<div class=\\"body\\"> |
59 |
| -<div class=\\"footer\\"> |
60 |
| -", |
61 |
| -} |
62 |
| -`; |
63 |
| -
|
64 |
| -exports[`"esModule" option should work js template with "namedExport" option: warnings 1`] = `Array []`; |
65 |
| -
|
66 | 3 | exports[`"esModule" option should work when not specified: errors 1`] = `Array []`;
|
67 | 4 |
|
68 | 5 | exports[`"esModule" option should work when not specified: module 1`] = `
|
@@ -109,79 +46,6 @@ Array [
|
109 | 46 |
|
110 | 47 | exports[`"esModule" option should work when not specified: warnings 1`] = `Array []`;
|
111 | 48 |
|
112 |
| -exports[`"esModule" option should work with "namedExport" option with nested import: errors 1`] = `Array []`; |
113 |
| -
|
114 |
| -exports[`"esModule" option should work with "namedExport" option with nested import: module 1`] = ` |
115 |
| -"// Imports |
116 |
| -import ___CSS_LOADER_API_IMPORT___ from \\"../../../../../src/runtime/api.js\\"; |
117 |
| -import ___CSS_LOADER_ICSS_IMPORT_0___, * as ___CSS_LOADER_ICSS_IMPORT_0____NAMED___ from \\"-!../../../../../src/index.js??[ident]!../../../modules/composes/values.css\\"; |
118 |
| -var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false); |
119 |
| -___CSS_LOADER_EXPORT___.i(___CSS_LOADER_ICSS_IMPORT_0___, \\"\\", true); |
120 |
| -// Module |
121 |
| -___CSS_LOADER_EXPORT___.push([module.id, \\"._1yYSY3W2VgnkKdMmuxCIL1 {\\\\n color: \\" + ___CSS_LOADER_ICSS_IMPORT_0____NAMED___[\\"vDef\\"] + \\";\\\\n}\\\\n\\", \\"\\"]); |
122 |
| -// Exports |
123 |
| -export const vDef = \\"\\" + ___CSS_LOADER_ICSS_IMPORT_0____NAMED___[\\"vDef\\"] + \\"\\"; |
124 |
| -export const ghi = \\"_1yYSY3W2VgnkKdMmuxCIL1\\"; |
125 |
| -
|
126 |
| -export default ___CSS_LOADER_EXPORT___; |
127 |
| -" |
128 |
| -`; |
129 |
| -
|
130 |
| -exports[`"esModule" option should work with "namedExport" option with nested import: result 1`] = ` |
131 |
| -Array [ |
132 |
| - Array [ |
133 |
| - "../../src/index.js?[ident]!./modules/composes/values.css", |
134 |
| - " |
135 |
| -", |
136 |
| - "", |
137 |
| - ], |
138 |
| - Array [ |
139 |
| - "./es-module/named/nested/index.css", |
140 |
| - "._1yYSY3W2VgnkKdMmuxCIL1 { |
141 |
| - color: red; |
142 |
| -} |
143 |
| -", |
144 |
| - "", |
145 |
| - ], |
146 |
| -] |
147 |
| -`; |
148 |
| -
|
149 |
| -exports[`"esModule" option should work with "namedExport" option with nested import: warnings 1`] = `Array []`; |
150 |
| -
|
151 |
| -exports[`"esModule" option should work with "namedExport" option: errors 1`] = `Array []`; |
152 |
| -
|
153 |
| -exports[`"esModule" option should work with "namedExport" option: module 1`] = ` |
154 |
| -"// Imports |
155 |
| -import ___CSS_LOADER_API_IMPORT___ from \\"../../../../../src/runtime/api.js\\"; |
156 |
| -var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false); |
157 |
| -// Module |
158 |
| -___CSS_LOADER_EXPORT___.push([module.id, \\"._3yAjbn27wJ9GVH2M-pj-hs {\\\\n color: red;\\\\n}\\\\n\\\\n.bar {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]); |
159 |
| -// Exports |
160 |
| -export const barBaz = \\"_3yAjbn27wJ9GVH2M-pj-hs\\"; |
161 |
| -
|
162 |
| -export default ___CSS_LOADER_EXPORT___; |
163 |
| -" |
164 |
| -`; |
165 |
| -
|
166 |
| -exports[`"esModule" option should work with "namedExport" option: result 1`] = ` |
167 |
| -Array [ |
168 |
| - Array [ |
169 |
| - "./es-module/named/base/index.css", |
170 |
| - "._3yAjbn27wJ9GVH2M-pj-hs { |
171 |
| - color: red; |
172 |
| -} |
173 |
| -
|
174 |
| -.bar { |
175 |
| - color: red; |
176 |
| -} |
177 |
| -", |
178 |
| - "", |
179 |
| - ], |
180 |
| -] |
181 |
| -`; |
182 |
| -
|
183 |
| -exports[`"esModule" option should work with "namedExport" option: warnings 1`] = `Array []`; |
184 |
| -
|
185 | 49 | exports[`"esModule" option should work with a value equal to "false": errors 1`] = `Array []`;
|
186 | 50 |
|
187 | 51 | exports[`"esModule" option should work with a value equal to "false": module 1`] = `
|
|
0 commit comments