From 1e057c1e357cb35f8baafd5f58587945766ad85d Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Tue, 21 Feb 2023 19:44:40 +0000 Subject: [PATCH] . --- packages/io/__tests__/io.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/io/__tests__/io.test.ts b/packages/io/__tests__/io.test.ts index f0a74245..a74d0a6a 100644 --- a/packages/io/__tests__/io.test.ts +++ b/packages/io/__tests__/io.test.ts @@ -339,19 +339,19 @@ describe('rmRF', () => { await io.mkdirP(testPath) await assertExists(testPath) - // can't remove folder with locked file on windows const filePath = path.join(testPath, 'file.txt') await fs.appendFile(filePath, 'some data') await assertExists(filePath) const fd = await fs.open(filePath, 'r') - const files = await ioUtil.readdir(getTestTemp()) - for (const file of files) { - console.log(file) - } await io.rmRF(testPath) - await assertNotExists(testPath) + // can't remove folder with locked file on windows + if (ioUtil.IS_WINDOWS) { + await assertExists(testPath) + } else { + await assertNotExists(testPath) + } await fd.close() await io.rmRF(testPath)