-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
23 lines (21 loc) · 624 Bytes
/
vitest.config.ts
File metadata and controls
23 lines (21 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/// <reference types="vitest" />
import babel from "@vitejs/plugin-react"
import path from "path"
import { defineConfig } from "vite"
import babelConfig from "./.babel.mjs.json"
export default defineConfig({
plugins: [babel({ babel: babelConfig })],
test: {
include: ["./test/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
exclude: ["./test/utils/**/*.ts", "./test/**/*.init.ts"],
setupFiles: "./test/utils/setup.ts",
environment: "jsdom",
globals: true
},
resolve: {
alias: {
"effect-react/test": path.join(__dirname, "test"),
"effect-react": path.join(__dirname, "src")
}
}
})