forked from DorkFi/dorkfi-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (28 loc) · 757 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
29 lines (28 loc) · 757 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
import { defineConfig } from "vitest/config";
import path from "path";
import react from "@vitejs/plugin-react-swc";
// Vitest config so CI can run unit tests. Uses same resolve/alias as Vite.
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
buffer: "buffer",
},
},
define: {
global: "globalThis",
},
test: {
environment: "node",
globals: true,
// Exclude service tests that depend on runtime config (gas station, envoi API).
// Re-enable when those tests are updated or run in integration CI.
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/gasStationService.test.ts",
"**/envoiService.test.ts",
],
},
});