import { describe, it, expect } from "vitest"; import { parseCsv } from "../loader"; import { fixturesDir } from "../test-utils"; describe("parseCsv - refBaseDir option", () => { it("should use refBaseDir to resolve reference paths", () => { const csv = ["id,customer", "string,@users", "1,1"].join("\n"); const result = parseCsv(csv, { emitTypes: false, refBaseDir: fixturesDir, }); expect(result.data[0].customer).toEqual({ id: "1", name: "Alice", email: "alice@example.com", }); }); });