Skip to content

Commit 2995737

Browse files
committed
chore: add test deps and test commands
1 parent 99c4578 commit 2995737

File tree

2 files changed

+1199
-2
lines changed

2 files changed

+1199
-2
lines changed

package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
"dev": "vite",
88
"build": "tsc -b && vite build && vite build --mode=client",
99
"lint": "eslint .",
10-
"preview": "vite preview"
10+
"preview": "vite preview",
11+
"test": "vitest",
12+
"test:ui": "vitest --ui",
13+
"test:run": "vitest run",
14+
"test:coverage": "vitest run --coverage",
15+
"test:watch": "vitest watch"
1116
},
1217
"dependencies": {
1318
"@fontsource-variable/inter": "^5.2.5",
@@ -60,6 +65,9 @@
6065
"@biomejs/biome": "2.1.1",
6166
"@eslint/js": "^9.25.0",
6267
"@hono/vite-dev-server": "^0.19.1",
68+
"@testing-library/jest-dom": "^6.6.3",
69+
"@testing-library/react": "^16.3.0",
70+
"@testing-library/user-event": "^14.6.1",
6371
"@types/lodash": "^4.17.17",
6472
"@types/node": "^22.15.21",
6573
"@types/prismjs": "^1.26.5",
@@ -68,17 +76,22 @@
6876
"@types/react-syntax-highlighter": "^15.5.13",
6977
"@vitejs/plugin-basic-ssl": "^2.0.0",
7078
"@vitejs/plugin-react": "^4.4.1",
79+
"@vitest/ui": "^3.2.4",
7180
"autoprefixer": "^10.4.21",
7281
"eslint": "^9.25.0",
7382
"eslint-plugin-react-hooks": "^5.2.0",
7483
"eslint-plugin-react-refresh": "^0.4.19",
7584
"globals": "^16.0.0",
85+
"happy-dom": "^18.0.1",
86+
"jsdom": "^26.1.0",
87+
"msw": "^2.10.4",
7688
"postcss": "^8.5.3",
7789
"tailwindcss": "3",
7890
"typescript": "~5.8.3",
7991
"typescript-eslint": "^8.30.1",
8092
"vercel": "^42.3.0",
8193
"vite": "^6.3.5",
82-
"vite-plugin-vercel": "^9.0.7"
94+
"vite-plugin-vercel": "^9.0.7",
95+
"vitest": "^3.2.4"
8396
}
8497
}

0 commit comments

Comments
 (0)