Fix incorrect css test (#4451)
This commit is contained in:
parent
c960f602da
commit
a38a568299
4 changed files with 11 additions and 6 deletions
5
.changeset/odd-oranges-laugh.md
Normal file
5
.changeset/odd-oranges-laugh.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Bump @astrojs/compiler dependency
|
|
@ -86,7 +86,7 @@
|
||||||
"test:e2e:match": "playwright test -g"
|
"test:e2e:match": "playwright test -g"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/compiler": "^0.23.3",
|
"@astrojs/compiler": "^0.23.4",
|
||||||
"@astrojs/language-server": "^0.20.0",
|
"@astrojs/language-server": "^0.20.0",
|
||||||
"@astrojs/markdown-remark": "^1.0.0",
|
"@astrojs/markdown-remark": "^1.0.0",
|
||||||
"@astrojs/telemetry": "^1.0.0",
|
"@astrojs/telemetry": "^1.0.0",
|
||||||
|
|
|
@ -46,7 +46,7 @@ describe('CSS', function () {
|
||||||
expect(el2.attr('class')).to.equal(`visible ${scopedClass}`);
|
expect(el2.attr('class')).to.equal(`visible ${scopedClass}`);
|
||||||
|
|
||||||
// 2. check CSS
|
// 2. check CSS
|
||||||
const expected = `.blue:where(.${scopedClass}){color:#b0e0e6}.color\\\\:blue:where(.${scopedClass}){color:#b0e0e6}.visible:where(.${scopedClass}){display:block}`;
|
const expected = `.blue:where(.${scopedClass}){color:#b0e0e6}.color\\:blue:where(.${scopedClass}){color:#b0e0e6}.visible:where(.${scopedClass}){display:block}`;
|
||||||
expect(bundledCSS).to.include(expected);
|
expect(bundledCSS).to.include(expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
|
@ -383,7 +383,7 @@ importers:
|
||||||
|
|
||||||
packages/astro:
|
packages/astro:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/compiler': ^0.23.3
|
'@astrojs/compiler': ^0.23.4
|
||||||
'@astrojs/language-server': ^0.20.0
|
'@astrojs/language-server': ^0.20.0
|
||||||
'@astrojs/markdown-remark': ^1.0.0
|
'@astrojs/markdown-remark': ^1.0.0
|
||||||
'@astrojs/telemetry': ^1.0.0
|
'@astrojs/telemetry': ^1.0.0
|
||||||
|
@ -466,7 +466,7 @@ importers:
|
||||||
yargs-parser: ^21.0.1
|
yargs-parser: ^21.0.1
|
||||||
zod: ^3.17.3
|
zod: ^3.17.3
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/compiler': 0.23.3
|
'@astrojs/compiler': 0.23.4
|
||||||
'@astrojs/language-server': 0.20.3
|
'@astrojs/language-server': 0.20.3
|
||||||
'@astrojs/markdown-remark': link:../markdown/remark
|
'@astrojs/markdown-remark': link:../markdown/remark
|
||||||
'@astrojs/telemetry': link:../telemetry
|
'@astrojs/telemetry': link:../telemetry
|
||||||
|
@ -3148,8 +3148,8 @@ packages:
|
||||||
resolution: {integrity: sha512-8nvyxZTfCXLyRmYfTttpJT6EPhfBRg0/q4J/Jj3/pNPLzp+vs05ZdktsY6QxAREaOMAnNEtSqcrB4S5DsXOfRg==}
|
resolution: {integrity: sha512-8nvyxZTfCXLyRmYfTttpJT6EPhfBRg0/q4J/Jj3/pNPLzp+vs05ZdktsY6QxAREaOMAnNEtSqcrB4S5DsXOfRg==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@astrojs/compiler/0.23.3:
|
/@astrojs/compiler/0.23.4:
|
||||||
resolution: {integrity: sha512-eBWo0d3DoRDeg2Di1/5YJtOXh5eGFSjJMp1wVoVfoITHR4egdUGgsrDHZTzj0a25M/S9W5S6SpXCyNWcqi8jOA==}
|
resolution: {integrity: sha512-vNZIa5Tf5nOqBEGJvM6xyYBnGcz4MAp+bBPnyVI0UYRjsIWlP7RgMdCpRV0OOh5kgh00BoAypGv27kcoJCMVfA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@astrojs/language-server/0.20.3:
|
/@astrojs/language-server/0.20.3:
|
||||||
|
|
Loading…
Add table
Reference in a new issue