test(FN-2360): harden test isolation around repo fusion state

This commit is contained in:
gsxdsm
2026-04-29 12:02:56 -07:00
parent 59cbc500c1
commit afd48c2cc4
10 changed files with 370 additions and 51 deletions

View File

@@ -13,6 +13,7 @@
*/
import { createRequire } from "node:module";
import { assertOutsideRealFusionPath } from "./test-safety.js";
const isBun = typeof (globalThis as { Bun?: unknown }).Bun !== "undefined";
@@ -70,6 +71,7 @@ export class DatabaseSync {
private impl: RawDatabase;
constructor(path: string) {
assertOutsideRealFusionPath(path, "SQLite database open");
const Ctor = loadDatabaseCtor();
this.impl = new Ctor(path);
}