12 lines
378 B
TypeScript
Raw Permalink Normal View History

import { describe, expect, it } from "vitest";
import { parseTscErrors } from "../src/build";
describe("self-healing package smoke", () => {
it("parses TypeScript diagnostics", () => {
const output = "src/main.ts(1,2): error TS1000: boom";
const parsed = parseTscErrors(output);
expect(parsed.length).toBe(1);
expect(parsed[0].code).toBe("TS1000");
});
});