Skip to content

Commit 8969ff4

Browse files
chore: upgrade vite-plugin-vue
1 parent f49155f commit 8969ff4

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

packages/astro/test/0-css.test.js

+20
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ describe('CSS', function () {
4141
);
4242

4343
describe('Astro Styles', () => {
44+
// Fails
4445
it('HTML and CSS scoped correctly', async () => {
4546
const el1 = $('#dynamic-class');
4647
const el2 = $('#dynamic-vis');
@@ -88,10 +89,12 @@ describe('CSS', function () {
8889
assert.equal(inline.includes('display:contents'), true);
8990
});
9091

92+
// Fails
9193
it('<style lang="sass">', async () => {
9294
assert.match(bundledCSS, /h1\[data-astro-cid-[^{]*\{color:#90ee90\}/);
9395
});
9496

97+
// Fails
9598
it('<style lang="scss">', async () => {
9699
assert.match(bundledCSS, /h1\[data-astro-cid-[^{]*\{color:#ff69b4\}/);
97100
});
@@ -108,20 +111,24 @@ describe('CSS', function () {
108111
});
109112

110113
describe('Styles in src/', () => {
114+
// Fails
111115
it('.css', async () => {
112116
assert.match(bundledCSS, /.linked-css[^{]*\{color:gold/);
113117
});
114118

119+
// Fails
115120
it('.sass', async () => {
116121
assert.match(bundledCSS, /.linked-sass[^{]*\{color:#789/);
117122
});
118123

124+
// Fails
119125
it('.scss', async () => {
120126
assert.match(bundledCSS, /.linked-scss[^{]*\{color:#6b8e23/);
121127
});
122128
});
123129

124130
describe('JSX', () => {
131+
// Fails
125132
it('.css', async () => {
126133
const el = $('#react-css');
127134
// 1. check HTML
@@ -130,6 +137,7 @@ describe('CSS', function () {
130137
assert.equal(bundledCSS.includes('.react-title'), true);
131138
});
132139

140+
// Fails
133141
it('.module.css', async () => {
134142
const el = $('#react-module-css');
135143
const classes = el.attr('class').split(' ');
@@ -142,6 +150,7 @@ describe('CSS', function () {
142150
assert.match(bundledCSS, new RegExp(`.${moduleClass}[^{]*{font-family:fantasy`));
143151
});
144152

153+
// Fails
145154
it('.sass', async () => {
146155
const el = $('#react-sass');
147156

@@ -152,6 +161,7 @@ describe('CSS', function () {
152161
assert.match(bundledCSS, /.react-sass-title[^{]*\{font-family:fantasy/);
153162
});
154163

164+
// Fails
155165
it('.scss', async () => {
156166
const el = $('#react-scss');
157167

@@ -162,6 +172,7 @@ describe('CSS', function () {
162172
assert.match(bundledCSS, /.react-scss-title[^{]*\{font-family:fantasy/);
163173
});
164174

175+
// Fails
165176
it('.module.sass', async () => {
166177
const el = $('#react-module-sass');
167178
const classes = el.attr('class').split(' ');
@@ -174,6 +185,7 @@ describe('CSS', function () {
174185
assert.match(bundledCSS, new RegExp(`.${moduleClass}[^{]*{font-family:fantasy`));
175186
});
176187

188+
// Fails
177189
it('.module.scss', async () => {
178190
const el = $('#react-module-scss');
179191
const classes = el.attr('class').split(' ');
@@ -186,6 +198,7 @@ describe('CSS', function () {
186198
assert.match(bundledCSS, new RegExp(`.${moduleClass}[^{]*{font-family:fantasy`));
187199
});
188200

201+
// Fails
189202
it('.module.css ordering', () => {
190203
const globalStyleClassIndex = bundledCSS.indexOf('.module-ordering');
191204
const moduleStyleClassIndex = bundledCSS.indexOf('._module_ordering');
@@ -197,6 +210,7 @@ describe('CSS', function () {
197210
});
198211

199212
describe('Vue', () => {
213+
// Fails
200214
it('<style>', async () => {
201215
const el = $('#vue-css');
202216

@@ -222,6 +236,7 @@ describe('CSS', function () {
222236
assert.equal(bundledCSS.includes(`.vue-scoped[${scopeId}]`), true);
223237
});
224238

239+
// Fails
225240
it('<style module>', async () => {
226241
const el = $('#vue-modules');
227242
const classes = el.attr('class').split(' ');
@@ -234,6 +249,7 @@ describe('CSS', function () {
234249
assert.match(bundledCSS, new RegExp(`.${moduleClass}[^{]*{font-family:cursive`));
235250
});
236251

252+
// Fails
237253
it('<style lang="sass">', async () => {
238254
const el = $('#vue-sass');
239255

@@ -244,6 +260,7 @@ describe('CSS', function () {
244260
assert.match(bundledCSS, /.vue-sass[^{]*\{font-family:cursive/);
245261
});
246262

263+
// Fails
247264
it('<style lang="scss">', async () => {
248265
const el = $('#vue-scss');
249266

@@ -256,6 +273,7 @@ describe('CSS', function () {
256273
});
257274

258275
describe('Svelte', () => {
276+
// Fails
259277
it('<style>', async () => {
260278
const el = $('#svelte-css');
261279
const classes = el.attr('class').split(' ');
@@ -273,6 +291,7 @@ describe('CSS', function () {
273291
);
274292
});
275293

294+
// Fails
276295
it('<style lang="sass">', async () => {
277296
const el = $('#svelte-sass');
278297
const classes = el.attr('class').split(' ');
@@ -290,6 +309,7 @@ describe('CSS', function () {
290309
);
291310
});
292311

312+
// Fails
293313
it('<style lang="scss">', async () => {
294314
const el = $('#svelte-scss');
295315
const classes = el.attr('class').split(' ');

packages/integrations/vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"test": "astro-scripts test \"test/**/*.test.js\""
4343
},
4444
"dependencies": {
45-
"@vitejs/plugin-vue": "^5.2.1",
45+
"@vitejs/plugin-vue": "5.2.2",
4646
"@vitejs/plugin-vue-jsx": "^4.1.1",
4747
"@vue/compiler-sfc": "^3.5.13",
4848
"vite": "^6.2.1",

pnpm-lock.yaml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)