From e20d901f8e6cf43fd10315e41bcc32772d77d0b8 Mon Sep 17 00:00:00 2001 From: leowrites Date: Sun, 8 Sep 2024 21:09:27 -0400 Subject: [PATCH] use synchronous rm --- memory-viz/src/tests/cli.spec.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/memory-viz/src/tests/cli.spec.tsx b/memory-viz/src/tests/cli.spec.tsx index 442c0f6e..f8842405 100644 --- a/memory-viz/src/tests/cli.spec.tsx +++ b/memory-viz/src/tests/cli.spec.tsx @@ -197,13 +197,10 @@ describe.each([ ); describe("memory-viz CLI", () => { - const command = "memory-viz"; - const roughjsConfig = "--roughjs-config seed=1234"; - const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "test_results_")); afterAll(() => { - fs.rm(tempDir, { recursive: true }); + fs.rmSync(tempDir, { recursive: true }); }); describe.each([