From fa2a02b29ee7bdf107a98f4732edc2c3ce076a82 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 30 Dec 2025 18:40:05 +0100 Subject: [PATCH] test: fix --- .../src/cleanExpiredDlxCache.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/store/plugin-commands-store/src/cleanExpiredDlxCache.test.ts b/store/plugin-commands-store/src/cleanExpiredDlxCache.test.ts index a2dea83e2a..c94dc6d31f 100644 --- a/store/plugin-commands-store/src/cleanExpiredDlxCache.test.ts +++ b/store/plugin-commands-store/src/cleanExpiredDlxCache.test.ts @@ -213,8 +213,8 @@ test('cleanExpiredDlxCache ignores files in the dlx cache directory', async () = // Create a file in the dlx directory (simulating the bug/noise) const dlxDir = path.join(cacheDir, 'dlx') - fsOriginal.mkdirSync(dlxDir, { recursive: true }) - fsOriginal.writeFileSync(path.join(dlxDir, 'some-random-file'), 'hello') + fs.mkdirSync(dlxDir, { recursive: true }) + fs.writeFileSync(path.join(dlxDir, 'some-random-file'), 'hello') await cleanExpiredDlxCache({ cacheDir, @@ -223,8 +223,8 @@ test('cleanExpiredDlxCache ignores files in the dlx cache directory', async () = }) // The directory should be gone (cleaned) - expect(fsOriginal.existsSync(path.join(dlxDir, createCacheKey('foo')))).toBeFalsy() + expect(fs.existsSync(path.join(dlxDir, createCacheKey('foo')))).toBeFalsy() // The file should still be there (ignored) - expect(fsOriginal.existsSync(path.join(dlxDir, 'some-random-file'))).toBeTruthy() + expect(fs.existsSync(path.join(dlxDir, 'some-random-file'))).toBeTruthy() })