(ref: string, entities: ReadonlyArray<ApiEntity>)
| 24 | }) |
| 25 | |
| 26 | const snapshot = (ref: string, entities: ReadonlyArray<ApiEntity>): ApiSnapshot => ({ |
| 27 | version: 1, |
| 28 | compiler: { name: "typescript", version: "fixture" }, |
| 29 | ref, |
| 30 | sha: ref.repeat(40).slice(0, 40), |
| 31 | packages: ["old", "new"], |
| 32 | entrypoints: [], |
| 33 | entities, |
| 34 | diagnostics: [] |
| 35 | }) |
| 36 | |
| 37 | describe("snapshot diff", () => { |
| 38 | it("matches renames, classifies signature changes, and separates suggestions", () => { |