mouse smoothing + fix fuck ass tests

This commit is contained in:
KingKDot
2026-07-18 19:40:36 -05:00
parent 6f6e28b8e7
commit 12cb3f6b4c
9 changed files with 88 additions and 54 deletions
+7 -1
View File
@@ -8,9 +8,15 @@ test("creates isolated test data when the Bun preload was not discovered", async
delete childEnv.DATA_DIR;
delete childEnv.OVERLORD_TEST_DATA_DIR;
childEnv.NODE_ENV = "test";
// VS Code's Bun adapter injects inspector settings into the test process.
// A child that inherits them can wait for the same debugger and never exit.
delete childEnv.BUN_OPTIONS;
for (const key of Object.keys(childEnv)) {
if (key.startsWith("BUN_INSPECT")) delete childEnv[key];
}
const child = Bun.spawn([
"bun",
process.execPath,
"-e",
'const { resolveDataDir } = await import("./src/paths.ts"); console.log(resolveDataDir());',
], {