Skip to content

Commit 1723e37

Browse files
committed
chore: use vitest 3 and vite 6
1 parent 5ad4c7f commit 1723e37

File tree

6 files changed

+759
-775
lines changed

6 files changed

+759
-775
lines changed

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
"url": "https://raw.githubusercontent.com/webcomponents/custom-elements-manifest/main/schema.json"
2929
}
3030
]
31-
}
31+
}

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
"type": "module",
66
"scripts": {
77
"dev": "pnpm -r --filter='./packages/*' run dev",
8-
"build": "pnpm -r build",
8+
"build": "pnpm -r --filter='./packages/*' run build",
99
"preview": "vite preview",
1010
"test": "vitest",
1111
"example:csr": "pnpm -r --filter='./examples/csr' run dev",
1212
"example:ssr": "pnpm -r --filter='./examples/ssr' run dev"
1313
},
1414
"devDependencies": {
1515
"@biomejs/biome": "^1.9.4",
16-
"@types/node": "^22.10.1",
17-
"@vitest/browser": "^2.1.8",
18-
"@vitest/ui": "2.1.8",
19-
"playwright": "^1.49.0",
20-
"prettier": "^3.4.1",
16+
"@types/node": "^22.10.10",
17+
"@vitest/browser": "^3.0.4",
18+
"@vitest/ui": "^3.0.4",
19+
"playwright": "^1.50.0",
20+
"prettier": "^3.4.2",
2121
"typescript": "catalog:",
2222
"vite": "catalog:",
23-
"vitest": "^2.1.8"
23+
"vitest": "^3.0.4"
2424
}
2525
}

packages/vite-plugin-lwc/package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"license": "MIT",
55
"author": "Matheus Cardoso <[email protected]>",
66
"type": "module",
7-
"files": ["dist"],
7+
"files": [
8+
"dist"
9+
],
810
"module": "./dist/index.mjs",
911
"types": "./dist/index.d.ts",
1012
"exports": {
@@ -31,10 +33,10 @@
3133
"@lwc/rollup-plugin": "catalog:"
3234
},
3335
"peerDependencies": {
34-
"vite": "^5.4.11"
36+
"vite": "catalog:"
3537
},
3638
"devDependencies": {
3739
"unbuild": "catalog:",
38-
"rollup": "^4.28.1"
40+
"rollup": "^4.32.0"
3941
}
4042
}

playground/lwc/vite.config.mts

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ export default defineConfig({
2020
browser: {
2121
provider: "playwright", // or 'webdriverio'
2222
enabled: true,
23-
name: "chromium", // browser name is required
2423
testerHtmlPath: "./index.html",
2524
headless: true,
25+
instances: [
26+
{
27+
browser: "chromium",
28+
29+
}
30+
]
2631
},
2732
},
2833
});

0 commit comments

Comments
 (0)