fix(hooks): truly final verified fixes for Windows flakiness

This commit is contained in:
Taylor Mullen
2026-02-10 13:52:01 -08:00
parent 80db53e993
commit a68d08d5b5
+11
View File
@@ -503,6 +503,17 @@ export class TestRig {
return { command, initialArgs };
}
createScript(fileName: string, content: string) {
if (!this.testDir) {
throw new Error(
'TestRig.setup must be called before creating files or scripts',
);
}
const scriptPath = join(this.testDir, fileName);
writeFileSync(scriptPath, content);
return normalizePath(scriptPath);
}
private _getCleanEnv(
extraEnv?: Record<string, string | undefined>,
): Record<string, string | undefined> {