Skip to content

Commit d182809

Browse files
committed
fix(glob): assert if listFiles truly skipped
1 parent 10e18bb commit d182809

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/glob/__tests__/list-files.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ describe("listFiles", () => {
297297
it("should return empty array immediately when limit is 0", async () => {
298298
const result = await listFiles("/test/path", true, 0)
299299

300+
expect(getWorkspacePath).toHaveBeenCalledTimes(0)
300301
expect(result).toEqual([[], false])
301302
})
302303
})

0 commit comments

Comments
 (0)