mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 11:43:20 +00:00
test(process): stage the verifier's script-library imports in the cleanup test (#11384)
This commit is contained in:
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")
|
||||
|
||||
Reference in new issue
Block a user