import fs from 'fs'; import path from 'path'; export interface JSONFixture { payload: unknown; headers: string[]; } export function getJSONFixture(name: string): JSONFixture { const fullPath = path.resolve(__dirname, 'fixtures', name); const contents = fs.readFileSync(fullPath, { encoding: 'utf8' }); return JSON.parse(contents); }