feat(FN-5124): add soft-delete QA boundary regression coverage

Adds a regression test for FN-5124 covering soft-delete QA boundary cases, targeting the engine reliability interaction suite. The single new test file exercises edge conditions in the soft-delete path to guard against future regressions.

Fusion-Task-Id: FN-5124

Fusion-Task-Lineage: 7166e252-9c98-4f51-956a-1402dae6f402
This commit is contained in:
Fusion (runfusion.ai)
2026-05-19 05:52:09 -07:00
committed by gsxdsm
parent 0cf65b4269
commit 15bb84f862
3 changed files with 101 additions and 0 deletions

View File

@@ -677,6 +677,20 @@ test("createIsolatedHomeEnv: returns temp HOME/USERPROFILE pair without mutating
rmSync(isolatedHome, { recursive: true, force: true });
});
test("createIsolatedHomeEnv: preserves a stable COREPACK_HOME outside the isolated HOME", () => {
const baseEnv = {
PATH: process.env.PATH || "",
HOME: "/tmp/original-home",
};
const { env, isolatedHome } = createIsolatedHomeEnv(baseEnv);
assert.equal(env.HOME, isolatedHome);
assert.equal(env.COREPACK_HOME, path.join(baseEnv.HOME, ".cache", "node", "corepack"));
rmSync(isolatedHome, { recursive: true, force: true });
});
test("cleanupIsolatedHomePath: removes existing isolated HOME directory", () => {
const homePath = mkdtempSync(path.join(tmpdir(), "fusion-test-home-root-cleanup-"));
assert.equal(path.basename(homePath).startsWith("fusion-test-home-root-cleanup-"), true);