Skip to content

Commit d3935e2

Browse files
committed
chore: update snapshots
1 parent 64c2f2a commit d3935e2

9 files changed

+668
-814
lines changed

test/__snapshots__/exportType.test.js.snap

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,14 +1733,7 @@ a {
17331733
}
17341734
`;
17351735

1736-
exports[`'exportType' option should work with 'css-style-sheet' value and CSS modules and still emit error on '@import' at-rules: warnings 1`] = `
1737-
[
1738-
"ModuleWarning: Module Warning (from \`replaced original path\`):
1739-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
1740-
1741-
More info: https://sass-lang.com/d/legacy-js-api",
1742-
]
1743-
`;
1736+
exports[`'exportType' option should work with 'css-style-sheet' value and CSS modules and still emit error on '@import' at-rules: warnings 1`] = `[]`;
17441737

17451738
exports[`'exportType' option should work with 'css-style-sheet' value and CommonJS modules: errors 1`] = `[]`;
17461739

@@ -4077,14 +4070,7 @@ CSSStyleSheet {
40774070
}
40784071
`;
40794072

4080-
exports[`'exportType' option should work with 'css-style-sheet' value and with 'sass-loader': warnings 1`] = `
4081-
[
4082-
"ModuleWarning: Module Warning (from \`replaced original path\`):
4083-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
4084-
4085-
More info: https://sass-lang.com/d/legacy-js-api",
4086-
]
4087-
`;
4073+
exports[`'exportType' option should work with 'css-style-sheet' value and with 'sass-loader': warnings 1`] = `[]`;
40884074

40894075
exports[`'exportType' option should work with 'css-style-sheet' value: errors 1`] = `[]`;
40904076

@@ -5162,11 +5148,4 @@ exports[`'exportType' option should work with CSS modules and the 'exportOnlyLoc
51625148
}
51635149
`;
51645150

5165-
exports[`'exportType' option should work with CSS modules and the 'exportOnlyLocals' option: warnings 1`] = `
5166-
[
5167-
"ModuleWarning: Module Warning (from \`replaced original path\`):
5168-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
5169-
5170-
More info: https://sass-lang.com/d/legacy-js-api",
5171-
]
5172-
`;
5151+
exports[`'exportType' option should work with CSS modules and the 'exportOnlyLocals' option: warnings 1`] = `[]`;

test/__snapshots__/import-option.test.js.snap

Lines changed: 293 additions & 293 deletions
Large diffs are not rendered by default.

test/__snapshots__/loader.test.js.snap

Lines changed: 17 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ exports[`loader should throw an error on invisible spaces: errors 1`] = `
243243
244244
SyntaxError
245245
246-
(1:8) /test/fixtures/invisible-space.css Unknown word color
246+
(1:8) /test/fixtures/invisible-space.css Unknown word
247247
248248
> 1 | a { 

 color: red; 

 }
249249
| ^
@@ -259,7 +259,7 @@ exports[`loader should throw error on invalid css syntax: errors 1`] = `
259259
260260
SyntaxError
261261
262-
(2:3) /test/fixtures/error.css Unknown word invalid
262+
(2:3) /test/fixtures/error.css Unknown word
263263
264264
1 | .some {
265265
> 2 | invalid css;
@@ -276,11 +276,9 @@ exports[`loader should throws error when no loader(s) for assets: errors 1`] = `
276276

277277
exports[`loader should throws error when no loader(s) for assets: warnings 1`] = `[]`;
278278

279-
exports[`loader should work and nothing to do with built-in CSS support: errors 1`] = `[]`;
280-
281-
exports[`loader should work and nothing to do with built-in CSS support: errors 2`] = `[]`;
279+
exports[`loader should work and nothing to do with built-in CSS support with futureDefaults: errors 1`] = `[]`;
282280

283-
exports[`loader should work and nothing to do with built-in CSS support: module 1`] = `
281+
exports[`loader should work and nothing to do with built-in CSS support with futureDefaults: module 1`] = `
284282
"@charset "UTF-8";
285283
286284
@@ -434,7 +432,16 @@ a[href="" i] {
434432
"
435433
`;
436434
437-
exports[`loader should work and nothing to do with built-in CSS support: module 2`] = `
435+
exports[`loader should work and nothing to do with built-in CSS support with futureDefaults: warnings 1`] = `
436+
[
437+
"ModuleWarning: Module Warning (from \`replaced original path\`):
438+
You can't use \`experiments.css\` (\`experiments.futureDefaults\` enable built-in CSS support by default) and \`css-loader\` together, please set \`experiments.css\` to \`false\` or set \`{ type: "javascript/auto" }\` for rules with \`css-loader\` in your webpack config (now css-loader does nothing).",
439+
]
440+
`;
441+
442+
exports[`loader should work and nothing to do with built-in CSS support: errors 1`] = `[]`;
443+
444+
exports[`loader should work and nothing to do with built-in CSS support: module 1`] = `
438445
"@charset "UTF-8";
439446
440447
@@ -595,13 +602,6 @@ You can't use \`experiments.css\` (\`experiments.futureDefaults\` enable built-i
595602
]
596603
`;
597604
598-
exports[`loader should work and nothing to do with built-in CSS support: warnings 2`] = `
599-
[
600-
"ModuleWarning: Module Warning (from \`replaced original path\`):
601-
You can't use \`experiments.css\` (\`experiments.futureDefaults\` enable built-in CSS support by default) and \`css-loader\` together, please set \`experiments.css\` to \`false\` or set \`{ type: "javascript/auto" }\` for rules with \`css-loader\` in your webpack config (now css-loader does nothing).",
602-
]
603-
`;
604-
605605
exports[`loader should work in 'production' mode: errors 1`] = `[]`;
606606
607607
exports[`loader should work in 'production' mode: module 1`] = `
@@ -1294,14 +1294,7 @@ exports[`loader should work with "sass-loader": result 1`] = `
12941294
]
12951295
`;
12961296
1297-
exports[`loader should work with "sass-loader": warnings 1`] = `
1298-
[
1299-
"ModuleWarning: Module Warning (from \`replaced original path\`):
1300-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
1301-
1302-
More info: https://sass-lang.com/d/legacy-js-api",
1303-
]
1304-
`;
1297+
exports[`loader should work with "sass-loader": warnings 1`] = `[]`;
13051298
13061299
exports[`loader should work with \`templateLiteral\` support: errors 1`] = `[]`;
13071300
@@ -2461,42 +2454,7 @@ exports[`loader should work with inline module syntax: result 1`] = `
24612454
]
24622455
`;
24632456
2464-
exports[`loader should work with inline module syntax: warnings 1`] = `
2465-
[
2466-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2467-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2468-
2469-
More info: https://sass-lang.com/d/legacy-js-api",
2470-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2471-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2472-
2473-
More info: https://sass-lang.com/d/legacy-js-api",
2474-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2475-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2476-
2477-
More info: https://sass-lang.com/d/legacy-js-api",
2478-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2479-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2480-
2481-
More info: https://sass-lang.com/d/legacy-js-api",
2482-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2483-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2484-
2485-
More info: https://sass-lang.com/d/legacy-js-api",
2486-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2487-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2488-
2489-
More info: https://sass-lang.com/d/legacy-js-api",
2490-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2491-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2492-
2493-
More info: https://sass-lang.com/d/legacy-js-api",
2494-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2495-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2496-
2497-
More info: https://sass-lang.com/d/legacy-js-api",
2498-
]
2499-
`;
2457+
exports[`loader should work with inline module syntax: warnings 1`] = `[]`;
25002458
25012459
exports[`loader should work with none AST metadata: errors 1`] = `[]`;
25022460
@@ -2583,18 +2541,7 @@ exports[`loader should work with the "modules.auto" option and the "import.loade
25832541
"
25842542
`;
25852543
2586-
exports[`loader should work with the "modules.auto" option and the "import.loaders" option: warnings 1`] = `
2587-
[
2588-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2589-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2590-
2591-
More info: https://sass-lang.com/d/legacy-js-api",
2592-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2593-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2594-
2595-
More info: https://sass-lang.com/d/legacy-js-api",
2596-
]
2597-
`;
2544+
exports[`loader should work with the "modules.auto" option and the "import.loaders" option: warnings 1`] = `[]`;
25982545
25992546
exports[`loader should work with webpackIgnore comment: errors 1`] = `[]`;
26002547

0 commit comments

Comments
 (0)