import Fastify from "fastify"; import apophisPlugin from "../../../index.js"; const app = Fastify({ logger: false }); await app.register(import("@fastify/swagger"), { openapi: { info: { title: "Verify Parse Fail", version: "1.0.0" }, }, }); await app.register(apophisPlugin, { runtime: "off" }); app.get( "/broken", { schema: { description: "Route with invalid behavioral contract", "x-ensures": ["this is not a valid contract!!!"], response: { 200: { type: "object", properties: { status: { type: "string" }, }, }, }, }, }, async () => ({ status: "ok" }), ); export default app;