mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
19 lines
350 B
TypeScript
19 lines
350 B
TypeScript
import { afterEach, mock } from "bun:test";
|
|
|
|
import { applyMigrations, testDb } from "@sofa/db/test-utils";
|
|
|
|
process.env.LOG_LEVEL ??= "error";
|
|
|
|
mock.module("@sofa/db/client", () => ({
|
|
db: testDb,
|
|
optimizeDatabase: () => {},
|
|
vacuumDatabase: () => {},
|
|
closeDatabase: () => {},
|
|
}));
|
|
|
|
applyMigrations();
|
|
|
|
afterEach(() => {
|
|
mock.restore();
|
|
});
|