-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvitest.config.mts
More file actions
30 lines (26 loc) · 816 Bytes
/
vitest.config.mts
File metadata and controls
30 lines (26 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/// <reference types="vitest" />
import { default as react } from "@vitejs/plugin-react";
import { default as viteTsConfigPaths } from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";
export default defineConfig({
cacheDir: "./node_modules/.vite",
plugins: [react(), viteTsConfigPaths({ root: "./" })],
test: {
globals: true,
environment: "jsdom",
setupFiles: "./vitest.setup-tests.ts",
cache: {
dir: "./node_modules/.vitest",
},
coverage: {
all: true,
provider: "istanbul",
},
include: [
`${__dirname}/apps/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}`,
`${__dirname}/libs/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}`,
],
},
});
process.env.ENV_FILE_NAME = "TEST";
process.env.VERCEL_URL = "localhost:4200";