test: tighten fs-safe directory assertion

This commit is contained in:
Peter Steinberger
2026-05-09 04:03:07 +01:00
parent 8562aa8ab2
commit 97757dd324

View File

@@ -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);
},
);