Skip to content

Commit 930d3da

Browse files
authored
deps: use latest vite+ cli to support vitest v4 (#91)
and fix vitest provider config usage https://vitest.dev/guide/browser/config#provider
1 parent bf27f41 commit 930d3da

File tree

4 files changed

+314
-775
lines changed

4 files changed

+314
-775
lines changed

apps/dashboard/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"test": "vite test"
1212
},
1313
"dependencies": {
14+
"@vibe/shared": "workspace:*",
1415
"@vibe/ui": "workspace:*",
1516
"@vibe/utils": "workspace:*",
16-
"@vibe/shared": "workspace:*",
1717
"lucide-react": "^0.548.0",
1818
"react": "^19.1.1",
1919
"react-dom": "^19.1.1",
@@ -29,8 +29,9 @@
2929
"@types/react-dom": "^19.1.7",
3030
"@types/react-router-dom": "^5.3.3",
3131
"@types/semver": "^7.7.1",
32-
"@vitest/browser": "^4.0.0",
33-
"@vitest/ui": "^4.0.0",
32+
"@vitest/browser": "^4.0.3",
33+
"@vitest/browser-playwright": "^4.0.3",
34+
"@vitest/ui": "^4.0.3",
3435
"happy-dom": "^20.0.0",
3536
"playwright": "^1.55.0",
3637
"rolldown-vite": "^7.1.10",

apps/dashboard/vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import tailwindcss from '@tailwindcss/vite';
22
import { defineProject } from 'vitest/config';
3+
import { playwright } from '@vitest/browser-playwright'
34

45
export default defineProject({
56
plugins: [tailwindcss()],
67
base: '/vibe-dashboard/',
78
test: {
89
browser: {
910
enabled: true,
10-
provider: 'playwright',
11+
provider: playwright(),
1112
headless: true,
1213
instances: [
1314
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dprint": "^0.50.2",
2020
"oxlint-tsgolint": "^0.3.0",
2121
"top-github-dependents-by-stars": "^1.0.4",
22-
"vitest": "^4.0.0"
22+
"vitest": "^4.0.3"
2323
},
2424
"pnpm": {
2525
"overrides": {

0 commit comments

Comments
 (0)