Skip to content

Commit

Permalink
test: case for pure and nesting (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Feb 27, 2024
1 parent d70117d commit 53b3096
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 3 deletions.
57 changes: 54 additions & 3 deletions test/__snapshots__/modules-option.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7930,6 +7930,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g {
.owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh {
color: black;
}

.nnjcLLGI3W9kePCpF3rz {
color: red;

& > span {
color: green;
}
}
\`, \\"\\"]);
// Exports
___CSS_LOADER_EXPORT___.locals = {
Expand All @@ -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___;
"
Expand Down Expand Up @@ -7996,6 +8005,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g {
.owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh {
color: black;
}

.nnjcLLGI3W9kePCpF3rz {
color: red;

& > span {
color: green;
}
}
",
"",
],
Expand Down Expand Up @@ -8051,6 +8068,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g {
.owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh {
color: black;
}

.nnjcLLGI3W9kePCpF3rz {
color: red;

& > span {
color: green;
}
}
\`, \\"\\"]);
// Exports
___CSS_LOADER_EXPORT___.locals = {
Expand All @@ -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___;
"
Expand Down Expand Up @@ -8117,6 +8143,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g {
.owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh {
color: black;
}

.nnjcLLGI3W9kePCpF3rz {
color: red;

& > span {
color: green;
}
}
",
"",
],
Expand Down Expand Up @@ -10717,6 +10751,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g {
.owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh {
color: black;
}

.nnjcLLGI3W9kePCpF3rz {
color: red;

& > span {
color: green;
}
}
\`, \\"\\"]);
// Exports
___CSS_LOADER_EXPORT___.locals = {
Expand All @@ -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___;
"
Expand Down Expand Up @@ -10783,6 +10826,14 @@ h1 #CEBxO1NI6KSE4aIOEe8g {
.owPaXiJkt4EitYBDn5Yh .CP7zuaZH99lZJVmJwA3g .vvLsn8M1D1up5NfSbIYh {
color: black;
}

.nnjcLLGI3W9kePCpF3rz {
color: red;

& > span {
color: green;
}
}
",
"",
],
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/modules/pure/pure.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ h1 #foo-6 {
.baz-3 :local(.baz) .bar-4 {
color: black;
}

.test {
color: red;

& > span {
color: green;
}
}

0 comments on commit 53b3096

Please sign in to comment.