Todo
This commit is contained in:
33
vitest.config.ts
Normal file
33
vitest.config.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import react from "@vitejs/plugin-react"
|
||||
import tsconfigPaths from "vite-tsconfig-paths"
|
||||
import { defineConfig } from "vitest/config"
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), tsconfigPaths()],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: "node",
|
||||
setupFiles: ["./test/setup/global.ts"],
|
||||
include: [
|
||||
"apps/**/*.test.{ts,tsx}",
|
||||
"packages/**/*.test.{ts,tsx}",
|
||||
"apps/**/*.vitest.{ts,tsx}",
|
||||
"packages/**/*.vitest.{ts,tsx}",
|
||||
],
|
||||
exclude: ["**/node_modules/**", "**/.next/**", "**/dist/**", "**/.turbo/**", "e2e/**"],
|
||||
coverage: {
|
||||
provider: "istanbul",
|
||||
reporter: ["text", "lcov", "html"],
|
||||
include: ["apps/**/*.{ts,tsx}", "packages/**/*.{ts,tsx}"],
|
||||
exclude: [
|
||||
"**/.next/**",
|
||||
"**/.turbo/**",
|
||||
"**/*.d.ts",
|
||||
"**/*.test.{ts,tsx}",
|
||||
"**/next-env.d.ts",
|
||||
"**/next.config.ts",
|
||||
"**/postcss.config.mjs",
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user