forked from koala73/worldmonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
23 lines (22 loc) · 754 Bytes
/
Copy pathvitest.config.mts
File metadata and controls
23 lines (22 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";
export default defineConfig({
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
test: {
environment: "edge-runtime",
// Two dots on purpose: `convex deploy` pushes every single-dot module under
// convex/ to the backend, so test scaffolding must never carry a one-dot
// name (tests/convex-entrypoint-hygiene.test.mjs pins this).
setupFiles: ["convex/__tests__/vitest.setup.ts"],
server: { deps: { inline: ["convex-test"] } },
include: [
"convex/__tests__/**/*.test.ts",
"server/__tests__/**/*.test.ts",
"src/services/correlation-engine/**/*.test.ts",
],
},
});