-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathvitest.config.ts
More file actions
22 lines (21 loc) · 601 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
22 lines (21 loc) · 601 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineConfig } from "vitest/config";
import { fileURLToPath, URL } from "node:url";
export default defineConfig({
resolve: {
alias: {
"@renderer": fileURLToPath(new URL("./src/renderer", import.meta.url)),
"@shared": fileURLToPath(new URL("./src/shared", import.meta.url))
}
},
test: {
environment: "node",
exclude: ["tests/visual/**", "node_modules/**", "dist/**", "dist-electron/**"],
globals: true,
server: {
deps: {
inline: ["tasmota-webserial-esptool"]
}
},
setupFiles: ["./src/renderer/test/setupDexie.ts"]
}
});