test(api): set server origin for API tests

This commit is contained in:
zetaloop
2026-04-25 14:24:27 +08:00
parent 874ee5cb9a
commit 074ad8f35b
+3
View File
@@ -7,6 +7,9 @@ const rootDir = dirname(fileURLToPath(import.meta.url))
export default defineConfig({ export default defineConfig({
test: { test: {
environment: "node", environment: "node",
env: {
INTERNAL_API_ORIGIN: "http://localhost",
},
include: ["tests/**/*.test.ts"], include: ["tests/**/*.test.ts"],
}, },
resolve: { resolve: {