import { readFile } from "node:fs/promises";
import { resolve } from "node:path";
import { describe, expect, it } from "vitest";

const fixture = (name: string) => resolve("test/fixtures", name);

describe("synthetic fixtures", () => {
  it("ships a synthetic CSV fixture with a header row", async () => {
    const text = await readFile(fixture("sample.csv"), "utf8");
    const [header] = text.trim().split("\n");
    expect(header.split(",")).toContain("name");
  });
});
