From 97757dd3246a138df463a0fffe3f28197d23892f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 04:03:07 +0100 Subject: [PATCH] test: tighten fs-safe directory assertion --- src/infra/fs-safe.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/infra/fs-safe.test.ts b/src/infra/fs-safe.test.ts index 399dfb3ef2a..62c8c9da0d2 100644 --- a/src/infra/fs-safe.test.ts +++ b/src/infra/fs-safe.test.ts @@ -388,9 +388,8 @@ describe("fs-safe", () => { await (await openRoot(root)).mkdir(path.join("alias", "nested", "deeper")); - await expect(fs.stat(path.join(realDir, "nested", "deeper"))).resolves.toMatchObject({ - isDirectory: expect.any(Function), - }); + const stat = await fs.stat(path.join(realDir, "nested", "deeper")); + expect(stat.isDirectory()).toBe(true); }, );