Skip to content

Commit 7635787

Browse files
committed
fix: migrate the two mkdtemp call sites the rebase silently reintroduced
Rebasing onto main pulled in #1594's two new test cases in this file, added independently of this branch's migration, still using raw fs.mkdtempSync(path.join(os.tmpdir(), ...)). Git's line-based merge found no textual conflict with this branch's removal of the os import (the changes touch non-overlapping regions), so it silently produced a file that doesn't typecheck. Migrated both to mkdtempForTestSync for consistency with the rest of the file, caught by CI's Typecheck, Fallow Code Quality, and FreeRange checks re-running against the pushed commit.
1 parent 67e7296 commit 7635787

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/__tests__/apple-runner-package-source.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test('package apple runner source strips unit-test blocks without mutating check
5555
});
5656

5757
test('package apple runner source rejects unit tests that would ship un-stripped', async () => {
58-
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'agent-device-runner-package-testgate-'));
58+
const root = mkdtempForTestSync('agent-device-runner-package-testgate-');
5959
onTestFinished(() => fs.rmSync(root, { recursive: true, force: true }));
6060

6161
writeFixtureFile(
@@ -82,7 +82,7 @@ test('package apple runner source rejects unit tests that would ship un-stripped
8282
});
8383

8484
test('package apple runner source allows only the runner entrypoint test method', async () => {
85-
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'agent-device-runner-package-entry-'));
85+
const root = mkdtempForTestSync('agent-device-runner-package-entry-');
8686
onTestFinished(() => fs.rmSync(root, { recursive: true, force: true }));
8787

8888
writeFixtureFile(

0 commit comments

Comments
 (0)