The best way to control Claude Code, Codex and more from any computer or phone
test(server): allow either valid file-search match (#9720)
Theo Browne committed
Sep 4, 2026 at 09:48 UTC
8ccb933a8aae461b616b199ab287164c3311a755
1 file changed
+4
-1
apps/server/src/workspace/WorkspaceEntries.test.ts
+4
-1
@@ -218,7 +218,10 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceEntries", (it) => {
218
kind: "file",
219
});
220
221
- expect(result.entries).toEqual([{ path: "src/index.ts", kind: "file" }]);
221
+ // Native ranking can put either matching file first.
222
+ expect(result.entries).toHaveLength(1);
223
+ expect(result.entries[0]?.kind).toBe("file");
224
+ expect(["src/index.ts", "src/internal.ts"]).toContain(result.entries[0]?.path);
225
expect(result.truncated).toBe(true);
226
}),
227
);