Skip to content

Commit e11d4f9

Browse files
committed
feat: add @vitejs/plugin-react as a dependency and update vitest configuration
1 parent b0691a7 commit e11d4f9

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

lib/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@types/node": "^24.0.3",
4040
"@types/react": "^19.1.8",
4141
"@types/react-dom": "^19.1.6",
42+
"@vitejs/plugin-react": "^4.5.2",
4243
"@vitest/coverage-v8": "^3.2.3",
4344
"docx": "^9.5.1",
4445
"esbuild-plugin-rdi": "^0.0.0",

lib/vitest.config.mts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import { defineConfig } from "vitest/config";
22
import tsconfigPaths from "vite-tsconfig-paths";
3+
import react from "@vitejs/plugin-react";
34

45
// https://vitejs.dev/config/
56
export default defineConfig({
6-
plugins: [tsconfigPaths()],
7+
plugins: [react(), tsconfigPaths()],
78
test: {
89
environment: "jsdom",
910
globals: true,
1011
setupFiles: ["@testing-library/jest-dom/vitest"],
1112
coverage: {
12-
include: ["src/**"],
13-
exclude: ["src/**/*.test.*", "src/**/declaration.d.ts"],
13+
// include: ["src/**"],
14+
// exclude: ["src/**/*.test.*", "src/**/declaration.d.ts"],
1415
reporter: ["text", "json", "clover", "html"],
1516
},
1617
},

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)