test: add type assertion to bypass type check

This commit is contained in:
sushichan044 2025-06-20 16:48:05 +09:00
commit 08808a45e0
No known key found for this signature in database

View file

@ -1248,6 +1248,7 @@ describe("tool()", () => {
processedInput: input,
resultType: "structured",
// Missing required 'timestamp' field
someExtraField: "unexpected" // Extra field not in schema
} as unknown as { processedInput: string; resultType: string; timestamp: string }, // Type assertion to bypass TypeScript validation for testing purposes
})
);