Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { createSearchClient } from "./client.js";
|
||||
import { toPhysicalSearchIndexUid } from "./index-name.js";
|
||||
import { createInMemoryMeili } from "./testing.js";
|
||||
|
||||
describe("createSearchClient", () => {
|
||||
@@ -25,11 +26,18 @@ describe("createSearchClient", () => {
|
||||
expect(results.hits.map((hit) => hit.document.id)).toEqual(["a"]);
|
||||
expect(results.estimatedTotalHits).toBe(1);
|
||||
|
||||
const faceted = await handle.search("", { filter: 'tenantId = "t1"', limit: 0, facets: ["tenantId"] });
|
||||
expect(faceted).toMatchObject({
|
||||
hits: [],
|
||||
facetDistribution: { tenantId: { t1: 1 } },
|
||||
});
|
||||
|
||||
await handle.delete(["a"]);
|
||||
const after = await handle.search("Onboarding", { filter: 'tenantId = "t1"', limit: 10 });
|
||||
expect(after.hits).toHaveLength(0);
|
||||
|
||||
expect(state.indexes.get("kb-articles")?.settings).toMatchObject({ searchableAttributes: ["title"] });
|
||||
expect(state.indexes.get(toPhysicalSearchIndexUid("kb-articles"))?.settings).toMatchObject({ searchableAttributes: ["title"] });
|
||||
expect(state.indexes.has("kb-articles")).toBe(false);
|
||||
});
|
||||
|
||||
it("returns health = available from a healthy backend", async () => {
|
||||
|
||||
Reference in new issue
Block a user