|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`"import" option should emit error when unresolved import: errors 1`] = ` |
| 4 | +Array [ |
| 5 | + "EntryModuleNotFoundError: Entry module not found: Error: Can't resolve '/test/fixtures/import/import-unresolved.js' in '/test/fixtures'", |
| 6 | +] |
| 7 | +`; |
| 8 | + |
| 9 | +exports[`"import" option should emit error when unresolved import: warnings 1`] = `Array []`; |
| 10 | + |
3 | 11 | exports[`"import" option should keep original order: errors 1`] = `Array []`;
|
4 | 12 |
|
5 | 13 | exports[`"import" option should keep original order: module 1`] = `
|
@@ -152,6 +160,88 @@ Array [
|
152 | 160 |
|
153 | 161 | exports[`"import" option should keep original order: warnings 1`] = `Array []`;
|
154 | 162 |
|
| 163 | +exports[`"import" option should resolve absolute path: errors 1`] = `Array []`; |
| 164 | + |
| 165 | +exports[`"import" option should resolve absolute path: module 1`] = ` |
| 166 | +"// Imports |
| 167 | +var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); |
| 168 | +var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./test.css\\"); |
| 169 | +exports = ___CSS_LOADER_API_IMPORT___(false); |
| 170 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 171 | +// Module |
| 172 | +exports.push([module.id, \\"\\", \\"\\"]); |
| 173 | +// Exports |
| 174 | +module.exports = exports; |
| 175 | +" |
| 176 | +`; |
| 177 | + |
| 178 | +exports[`"import" option should resolve absolute path: result 1`] = ` |
| 179 | +Array [ |
| 180 | + Array [ |
| 181 | + "../../src/index.js?[ident]!./import/test.css", |
| 182 | + ".test { |
| 183 | + a: a; |
| 184 | +} |
| 185 | +", |
| 186 | + "", |
| 187 | + ], |
| 188 | + Array [ |
| 189 | + "./import/import-absolute.css", |
| 190 | + "", |
| 191 | + "", |
| 192 | + ], |
| 193 | +] |
| 194 | +`; |
| 195 | + |
| 196 | +exports[`"import" option should resolve absolute path: warnings 1`] = `Array []`; |
| 197 | + |
| 198 | +exports[`"import" option should resolve absolute url relative rootContext: errors 1`] = `Array []`; |
| 199 | + |
| 200 | +exports[`"import" option should resolve absolute url relative rootContext: module 1`] = ` |
| 201 | +"// Imports |
| 202 | +var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); |
| 203 | +var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./test.css\\"); |
| 204 | +exports = ___CSS_LOADER_API_IMPORT___(false); |
| 205 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 206 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 207 | +// Module |
| 208 | +exports.push([module.id, \\".class {\\\\n a: b c d;\\\\n}\\\\n\\", \\"\\"]); |
| 209 | +// Exports |
| 210 | +module.exports = exports; |
| 211 | +" |
| 212 | +`; |
| 213 | + |
| 214 | +exports[`"import" option should resolve absolute url relative rootContext: result 1`] = ` |
| 215 | +Array [ |
| 216 | + Array [ |
| 217 | + "../../src/index.js?[ident]!./import/test.css", |
| 218 | + ".test { |
| 219 | + a: a; |
| 220 | +} |
| 221 | +", |
| 222 | + "", |
| 223 | + ], |
| 224 | + Array [ |
| 225 | + "../../src/index.js?[ident]!./import/test.css", |
| 226 | + ".test { |
| 227 | + a: a; |
| 228 | +} |
| 229 | +", |
| 230 | + "", |
| 231 | + ], |
| 232 | + Array [ |
| 233 | + "./import/import-absolute-url.css", |
| 234 | + ".class { |
| 235 | + a: b c d; |
| 236 | +} |
| 237 | +", |
| 238 | + "", |
| 239 | + ], |
| 240 | +] |
| 241 | +`; |
| 242 | + |
| 243 | +exports[`"import" option should resolve absolute url relative rootContext: warnings 1`] = `Array []`; |
| 244 | + |
155 | 245 | exports[`"import" option should respect stype field in package.json: errors 1`] = `Array []`;
|
156 | 246 |
|
157 | 247 | exports[`"import" option should respect stype field in package.json: module 1`] = `
|
|
0 commit comments