()
| 10 | } from "./liveComments"; |
| 11 | |
| 12 | function createExampleDiffFile() { |
| 13 | return createTestDiffFile({ |
| 14 | after: lines( |
| 15 | "export const alpha = 2;", |
| 16 | "export const keep = true;", |
| 17 | "export const beta = 2;", |
| 18 | "export const gamma = true;", |
| 19 | ), |
| 20 | before: lines("export const alpha = 1;", "export const keep = true;", "export const beta = 1;"), |
| 21 | context: 3, |
| 22 | id: "file:example", |
| 23 | path: "src/example.ts", |
| 24 | previousPath: "src/example-old.ts", |
| 25 | }); |
| 26 | } |
| 27 | |
| 28 | describe("live comment helpers", () => { |
| 29 | test("finds a diff file by current or previous path", () => { |
no test coverage detected