From 413da75eff03e0f479ea2c3559794ada8017399d Mon Sep 17 00:00:00 2001 From: James Bronder <36022278+jbronder@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:23:12 -0800 Subject: [PATCH] test(fs): child process scripts empty contents from tmp dirs (#5358) --- fs/testdata/empty_dir.ts | 3 ++- fs/testdata/empty_dir_sync.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/testdata/empty_dir.ts b/fs/testdata/empty_dir.ts index db80d2359131..7a899b2c75f1 100644 --- a/fs/testdata/empty_dir.ts +++ b/fs/testdata/empty_dir.ts @@ -2,7 +2,8 @@ import { emptyDir } from "../empty_dir.ts"; try { - await emptyDir("fs/testdata/testfolder"); + // Empty testfolder stored in Deno.args where the child.txt is located. + await emptyDir(Deno.args[0]!); console.log("success"); } catch (error) { console.log(error); diff --git a/fs/testdata/empty_dir_sync.ts b/fs/testdata/empty_dir_sync.ts index e882a9ae8557..82a6c385ece3 100644 --- a/fs/testdata/empty_dir_sync.ts +++ b/fs/testdata/empty_dir_sync.ts @@ -2,7 +2,8 @@ import { emptyDirSync } from "../empty_dir.ts"; try { - emptyDirSync("fs/testdata/testfolder"); + // Empty testfolder stored in Deno.args where the child.txt is located. + emptyDirSync(Deno.args[0]!); console.log("success"); } catch (error) { console.log(error);