mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 03:55:38 -04:00
- 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`
10 lines
192 B
TypeScript
10 lines
192 B
TypeScript
import { mock } from "bun:test";
|
|
import { applyMigrations, testDb } from "./sqlite";
|
|
|
|
mock.module("@/lib/db/client", () => ({
|
|
db: testDb,
|
|
closeDatabase: () => {},
|
|
}));
|
|
|
|
applyMigrations();
|