From cf8ad9155f98cd281430dcf7ebc882d26e195452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Bostro=CC=88m?= Date: Mon, 30 Sep 2024 21:10:15 +0300 Subject: [PATCH] refactor(test): replace deprecated rmdir with rm --- test/fileWriter.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fileWriter.test.ts b/test/fileWriter.test.ts index 13fe4da..717c261 100644 --- a/test/fileWriter.test.ts +++ b/test/fileWriter.test.ts @@ -52,7 +52,7 @@ describe('fileWriter extension', () => { const images = glob.sync(filePath); expect(images.length).toBe(1); - await fs.promises.rmdir(baseDir, { + await fs.promises.rm(baseDir, { recursive: true, // force: true, });