Tests: fix synthetic schema lookup typing

This commit is contained in:
Gustavo Madeira Santana
2026-03-06 02:20:26 -05:00
parent dc2a885050
commit 5fc2d0ff39

View File

@@ -244,7 +244,7 @@ describe("config schema", () => {
});
it("uses the indexed tuple item schema for positional array lookups", () => {
const tupleSchema: Parameters<typeof lookupConfigSchema>[0] = {
const tupleSchema = {
schema: {
type: "object",
properties: {
@@ -257,7 +257,7 @@ describe("config schema", () => {
uiHints: {},
version: "test",
generatedAt: "test",
};
} as unknown as Parameters<typeof lookupConfigSchema>[0];
const lookup = lookupConfigSchema(tupleSchema, "pair.1");
expect(lookup?.path).toBe("pair.1");