import { readFileSync } from "node:fs"; import { join } from "node:path"; export const SAMPLES = join(__dirname, "..", "samples"); /** A fresh copy of a sample payload from samples/. */ export function sample>(file: string): T { return JSON.parse(readFileSync(join(SAMPLES, file), "utf8")) as T; }