test: set DB_PATH in process.env for main.test.ts

This commit is contained in:
Jörg Krzeslak 2026-08-02 16:21:30 +02:00 committed by Laertes87
parent c2bebb1712
commit 7b80678ff9
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,6 @@
// Set isolated DB path before import to protect production data
process.env.DB_PATH = "./data/test-isolated.sqlite";
import { test, expect, mock, afterEach } from "bun:test";
import type { Cookie } from "elysia";
import {