I just created my first convex function test. However I get a ts error when I provide schema to convexTest() - why?
const t = convexTest(schema, modules) // issue with schema see below
For the code present, we get this error:
Argument of type 'SchemaDefinition<{ projects: TableDefinition<VObject<{ description?: string | undefined; skills: Id<"skills">[]; name: string; createdBy: Id<"users">; status: "active" | "archived" | "deleted"; }, { name: VString<string, "required">; description: VString<...>; createdBy: VId<...>; status: VUnion<...>; skills: VArray...' is not assignable to parameter of type 'SchemaDefinition<GenericSchema, boolean>'.
Types of property 'tables' are incompatible.
Type '{ projects: TableDefinition<VObject<{ description?: string | undefined; skills: Id<"skills">[]; name: string; createdBy: Id<"users">; status: "active" | "archived" | "deleted"; }, { name: VString<string, "required">; description: VString<...>; createdBy: VId<...>; status: VUnion<...>; skills: VArray<...>; }, "requir...' is not assignable to type 'GenericSchema'.
Property 'projects' is incompatible with index signature.
Type 'TableDefinition<VObject<{ description?: string | undefined; skills: Id<"skills">[]; name: string; createdBy: Id<"users">; status: "active" | "archived" | "deleted"; }, { name: VString<string, "required">; description: VString<...>; createdBy: VId<...>; status: VUnion<...>; skills: VArray<...>; }, "required", "skills...' is not assignable to type 'TableDefinition<Validator<any, any, any>, {}, {}, {}>'.
Types have separate declarations of a private property 'indexes'.
Fix it, verify, and then give a concise explanation.