Skip to content

Commit 30cb65d

Browse files
committedMay 8, 2024·
Fix vitest config and clean up
1 parent 5e5415b commit 30cb65d

File tree

4 files changed

+5
-27
lines changed

4 files changed

+5
-27
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules
44
*.log
55
.next
66
dist
7+
build
78
dist-ssr
89
*.local
910
.env

‎lib/package.json

-6
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,13 @@
2525
},
2626
"devDependencies": {
2727
"@repo/eslint-config": "workspace:*",
28-
"@repo/jest-presets": "workspace:*",
2928
"@repo/typescript-config": "workspace:*",
30-
"@testing-library/react": "^15.0.7",
3129
"@types/node": "^20.12.10",
3230
"@types/react": "^18.3.1",
3331
"@types/react-dom": "^18.3.0",
34-
"@vitejs/plugin-react": "^4.2.1",
3532
"@vitest/coverage-v8": "^1.6.0",
3633
"esbuild": "^0.21.1",
3734
"esbuild-plugin-react18-css": "^0.0.4",
38-
"jsdom": "^24.0.0",
39-
"react": "^18.3.1",
40-
"react-dom": "^18.3.1",
4135
"tiny-glob": "^0.2.9",
4236
"tsup": "^8.0.2",
4337
"typescript": "^5.4.5",

‎lib/vitest.config.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import { defineConfig } from "vitest/config";
2-
import react from "@vitejs/plugin-react";
32
import tsconfigPaths from "vite-tsconfig-paths";
43

54
// https://vitejs.dev/config/
65
export default defineConfig({
7-
plugins: [react(), tsconfigPaths()],
6+
plugins: [tsconfigPaths()],
87
test: {
98
environment: "node",
109
globals: true,
1110
setupFiles: [],
1211
coverage: {
1312
include: ["src/**"],
14-
exclude: ["src/**/index.ts", "src/**/declaration.d.ts"],
1513
reporter: ["text", "json", "clover", "html"],
1614
},
1715
},

‎pnpm-lock.yaml

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

0 commit comments

Comments
 (0)
Please sign in to comment.