mouse smoothing + fix fuck ass tests
This commit is contained in:
@@ -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());',
|
||||
], {
|
||||
|
||||
Reference in New Issue
Block a user