test: add type assertion to bypass type check
This commit is contained in:
parent
fc9ca5ff2e
commit
08808a45e0
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
})
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue