test(process): stage the verifier's script-library imports in the cleanup test (#11384)

This commit is contained in:
morluto authored and GitHub committed 2026-11-16 03:16:05 +08:00
1 parent 4b014fa9ad
commit 17e7c26087
1 file changed
+11 -4
@@ -41,10 +41,17 @@ const verifierFixture = async (provider: Provider) => {
new URL(`../../../scripts/verify-${provider}.mjs`, import.meta.url),
script,
);
await copyFile(
new URL("../../../scripts/lib/verifier-cleanup.mjs", import.meta.url),
join(root, "scripts", "lib", "verifier-cleanup.mjs"),
);
// The verifier's real script-library imports, transitively.
for (const library of [
"verifier-cleanup.mjs",
"verifier-fixture.mjs",
"canonical-temporary-directory.mjs",
"verifier-source-loader.mjs",
])
await copyFile(
new URL(`../../../scripts/lib/${library}`, import.meta.url),
join(root, "scripts", "lib", library),
);
const closeBody = `
await appendFile(process.env.REA_TEST_VERIFIER_CLOSE_LOG, "${provider}\\n");
if (process.env.REA_TEST_VERIFIER_CLOSE_FAIL === "1")