kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 32 lines 960 B view raw
1import { describe, expect, it } from "vitest"; 2import { createApp } from "../../apps/api/src/index"; 3 4describe("API integration: openapi", () => { 5 it("serves a merged OpenAPI document", async () => { 6 const { app } = createApp(); 7 8 const response = await app.request("/api/openapi"); 9 10 expect(response.status).toBe(200); 11 const payload = (await response.json()) as { 12 openapi: string; 13 info?: { title?: string }; 14 paths?: Record<string, unknown>; 15 components?: { 16 securitySchemes?: Record<string, unknown>; 17 }; 18 }; 19 20 expect(payload.openapi).toBe("3.0.3"); 21 expect(payload.info?.title).toBe("Kaneo API"); 22 expect(payload.paths?.["/config"]).toBeTruthy(); 23 expect( 24 Object.keys(payload.paths || {}).some((path) => 25 path.startsWith("/auth/"), 26 ), 27 ).toBe(true); 28 expect(payload.components?.securitySchemes).toMatchObject({ 29 bearerAuth: expect.any(Object), 30 }); 31 }); 32});