Files
juwan-frontend/vitest.config.ts
T
2026-04-25 14:24:27 +08:00

21 lines
436 B
TypeScript

import { dirname, resolve } from "node:path"
import { fileURLToPath } from "node:url"
import { defineConfig } from "vitest/config"
const rootDir = dirname(fileURLToPath(import.meta.url))
export default defineConfig({
test: {
environment: "node",
env: {
INTERNAL_API_ORIGIN: "http://localhost",
},
include: ["tests/**/*.test.ts"],
},
resolve: {
alias: {
"@": resolve(rootDir, "."),
},
},
})