Files
sofa/test/preload.ts
T
jake 609f984aa0 Move test utilities from lib/ to test/ directory
- Rename `lib/test-preload.ts` → `test/preload.ts` and
  `lib/test-utils.ts` → `test/sqlite.ts`
- Update `bunfig.toml` preload path to `./test/preload.ts`
- Update all service test imports from `@/lib/test-utils` to
  `@/test/sqlite`
2026-03-08 12:18:21 -04:00

10 lines
192 B
TypeScript

import { mock } from "bun:test";
import { applyMigrations, testDb } from "./sqlite";
mock.module("@/lib/db/client", () => ({
db: testDb,
closeDatabase: () => {},
}));
applyMigrations();