Skip to content

The agent that grows with you

fix(build): await the scratch-dir removal; drop an unused test import

Brooklyn Nicholson5690810779cc
diff --git a/scripts/build/frontend-common.mjs b/scripts/build/frontend-common.mjs
index eccbdac8193..d6d5010d2ac 100644
--- a/scripts/build/frontend-common.mjs
+++ b/scripts/build/frontend-common.mjs
@@ -102,7 +102,7 @@ export async function withProduct(out, compile, { source } = {}) {
await compile(product, scratch)
publishDirectory(product, out, { source })
} finally {
- rmTree(scratch)
+ await rmTree(scratch)
}
}
diff --git a/tests-js/freshness-metadata.test.mjs b/tests-js/freshness-metadata.test.mjs
index 0a870f2fb08..17c0686990d 100644
--- a/tests-js/freshness-metadata.test.mjs
+++ b/tests-js/freshness-metadata.test.mjs
@@ -1,4 +1,4 @@
-import { mkdtempSync, mkdirSync, writeFileSync, readFileSync, rmSync } from 'node:fs'
+import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from 'node:fs'
import { tmpdir } from 'node:os'
import path from 'node:path'
import { expect, test } from 'vitest'