MCPcopy Create free account
hub / github.com/Kong/httpsnippet / CustomFixture

Interface CustomFixture

src/fixtures/runCustomFixtures.ts:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8/* eslint-disable jest/no-export,jest/valid-title -- we want to do it just for this one case */
9export interface CustomFixture {
10 targetId: TargetId;
11 clientId: ClientId;
12 tests: {
13 it: string;
14 input: Request;
15 options: any;
16
17 /** a file path pointing to the expected custom fixture result */
18 expected: string;
19 }[];
20}
21
22export const runCustomFixtures = ({ targetId, clientId, tests }: CustomFixture) => {
23 describe(`custom fixtures for ${targetId}:${clientId}`, () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…