diff --git a/apps/server/src/workspace/WorkspaceEntries.test.ts b/apps/server/src/workspace/WorkspaceEntries.test.ts index d47aaaec82648e151975ce41c63296ddb5e5700c..ff3343c371385f2212a35da2eee5ce2eafd4d72e 100644 --- a/apps/server/src/workspace/WorkspaceEntries.test.ts +++ b/apps/server/src/workspace/WorkspaceEntries.test.ts @@ -218,7 +218,10 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceEntries", (it) => { kind: "file", }); - expect(result.entries).toEqual([{ path: "src/index.ts", kind: "file" }]); + // Native ranking can put either matching file first. + expect(result.entries).toHaveLength(1); + expect(result.entries[0]?.kind).toBe("file"); + expect(["src/index.ts", "src/internal.ts"]).toContain(result.entries[0]?.path); expect(result.truncated).toBe(true); }), );