From 4479898a80c5f4599e57501ab04548a0c1a9e3ea Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 27 Feb 2024 15:55:49 +0300 Subject: [PATCH] test: case for pure and nested --- .../__snapshots__/modules-option.test.js.snap | 57 ++++++++++++++++++- test/fixtures/modules/pure/pure.css | 8 +++ 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/test/__snapshots__/modules-option.test.js.snap b/test/__snapshots__/modules-option.test.js.snap index 15d944d7..eba3389d 100644 --- a/test/__snapshots__/modules-option.test.js.snap +++ b/test/__snapshots__/modules-option.test.js.snap @@ -7930,6 +7930,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g { .owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh { color: black; } + +.nnjcLLGI3W9kePCpF3rz { + color: red; + + & > span { + color: green; + } +} \`, \\"\\"]); // Exports ___CSS_LOADER_EXPORT___.locals = { @@ -7947,7 +7955,8 @@ ___CSS_LOADER_EXPORT___.locals = { \\"bar-2\\": \`XbSw2R5rWm8FCPx8AUjP\`, \\"baz-3\\": \`owPaXiJkt4EitYBDn5Yh\`, \\"baz\\": \`CP7zuaZH99lZJVmJwA3g\`, - \\"bar-4\\": \`vvLsn8M1D1up5NfSbIYh\` + \\"bar-4\\": \`vvLsn8M1D1up5NfSbIYh\`, + \\"test\\": \`nnjcLLGI3W9kePCpF3rz\` }; export default ___CSS_LOADER_EXPORT___; " @@ -7996,6 +8005,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g { .owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh { color: black; } + +.nnjcLLGI3W9kePCpF3rz { + color: red; + + & > span { + color: green; + } +} ", "", ], @@ -8051,6 +8068,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g { .owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh { color: black; } + +.nnjcLLGI3W9kePCpF3rz { + color: red; + + & > span { + color: green; + } +} \`, \\"\\"]); // Exports ___CSS_LOADER_EXPORT___.locals = { @@ -8068,7 +8093,8 @@ ___CSS_LOADER_EXPORT___.locals = { \\"bar-2\\": \`XbSw2R5rWm8FCPx8AUjP\`, \\"baz-3\\": \`owPaXiJkt4EitYBDn5Yh\`, \\"baz\\": \`CP7zuaZH99lZJVmJwA3g\`, - \\"bar-4\\": \`vvLsn8M1D1up5NfSbIYh\` + \\"bar-4\\": \`vvLsn8M1D1up5NfSbIYh\`, + \\"test\\": \`nnjcLLGI3W9kePCpF3rz\` }; export default ___CSS_LOADER_EXPORT___; " @@ -8117,6 +8143,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g { .owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh { color: black; } + +.nnjcLLGI3W9kePCpF3rz { + color: red; + + & > span { + color: green; + } +} ", "", ], @@ -10717,6 +10751,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g { .owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh { color: black; } + +.nnjcLLGI3W9kePCpF3rz { + color: red; + + & > span { + color: green; + } +} \`, \\"\\"]); // Exports ___CSS_LOADER_EXPORT___.locals = { @@ -10734,7 +10776,8 @@ ___CSS_LOADER_EXPORT___.locals = { \\"bar-2\\": \`XbSw2R5rWm8FCPx8AUjP\`, \\"baz-3\\": \`owPaXiJkt4EitYBDn5Yh\`, \\"baz\\": \`CP7zuaZH99lZJVmJwA3g\`, - \\"bar-4\\": \`vvLsn8M1D1up5NfSbIYh\` + \\"bar-4\\": \`vvLsn8M1D1up5NfSbIYh\`, + \\"test\\": \`nnjcLLGI3W9kePCpF3rz\` }; export default ___CSS_LOADER_EXPORT___; " @@ -10783,6 +10826,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g { .owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh { color: black; } + +.nnjcLLGI3W9kePCpF3rz { + color: red; + + & > span { + color: green; + } +} ", "", ], diff --git a/test/fixtures/modules/pure/pure.css b/test/fixtures/modules/pure/pure.css index addb88d0..71693e98 100644 --- a/test/fixtures/modules/pure/pure.css +++ b/test/fixtures/modules/pure/pure.css @@ -37,3 +37,11 @@ h1 #foo-6 { .baz-3 :local(.baz) .bar-4 { color: black; } + +.test { + color: red; + + & > span { + color: green; + } +}