Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="vitest/config" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
Expand All @@ -14,20 +13,6 @@ export const appConfig = {
uploadToken: process.env.CODECOV_TOKEN,
}),
],
test: {
environment: "happy-dom",
setupFiles: ["./src/setupTests.tsx"],
coverage: {
exclude: ["styled-system/**"],
thresholds: {
statements: 90,
branches: 85,
functions: 95,
lines: 90,
},
reporter: ["text", "text-summary", "lcov"],
},
},
optimizeDeps: {
exclude: ["node_modules/.cache/storybook"],
},
Expand Down
1 change: 0 additions & 1 deletion vite.lib.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="vitest/config" />
import { readdirSync } from "fs";
import { resolve } from "path";
import { defineConfig } from "vite";
Expand Down
21 changes: 21 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";

export default defineConfig({
plugins: [react(), svgr()],
test: {
environment: "happy-dom",
setupFiles: ["./src/setupTests.tsx"],
coverage: {
exclude: ["styled-system/**"],
thresholds: {
statements: 90,
branches: 85,
functions: 95,
lines: 90,
},
reporter: ["text", "text-summary", "lcov"],
},
},
});