From 12d2baecab96c01c0b4f78c0490ba546a7c01d3d Mon Sep 17 00:00:00 2001 From: Jared Wray Date: Sun, 2 Feb 2025 09:11:01 -0800 Subject: [PATCH] fixing rmdir issue with rm --- test/ecto.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ecto.test.ts b/test/ecto.test.ts index 1f52cbd..4d79a71 100644 --- a/test/ecto.test.ts +++ b/test/ecto.test.ts @@ -198,7 +198,7 @@ it('write via ejs', async () => { expect(fileSource).toBe('

bar

'); - await fs.promises.rmdir(testOutputDirectory, {recursive: true}); + await fs.promises.rm(testOutputDirectory, {recursive: true}); }); it('write via ejs with long path', async () => { @@ -213,7 +213,7 @@ it('write via ejs with long path', async () => { expect(fileSource).toBe('

bar

'); - await fs.promises.rmdir(testOutputDirectory, {recursive: true}); + await fs.promises.rm(testOutputDirectory, {recursive: true}); }); it('Render from Template - EJS', async () => {