Unified · Split
| @@ -261,7 +261,9 @@ describe("apps plugin schema projection", () => { · 260 unmodified lines | ||
| 261 | 261 | // undefined fails encoding (the /api/tools/schema 400), so the key must |
| 262 | 262 | // be absent entirely when all required fields were projected away. |
| 263 | 263 | expect("required" in (result.inputSchema as Record<string, unknown>)).toBe(false); |
| 264 | − expect(JSON.parse(JSON.stringify(result.inputSchema))).toEqual(result.inputSchema); | |
| 264 | + expect(Object.values(result.inputSchema as Record<string, unknown>).includes(undefined)).toBe( | |
| 265 | + false, | |
| 266 | + ); | |
| 265 | 267 | }), |
| 266 | 268 | ); |
| 267 | 269 | }); |