MCPcopy Create free account
hub / github.com/Effect-TS/effect / snapshot

Function snapshot

packages/tools/api-diff/test/Diff.test.ts:26–35  ·  view source on GitHub ↗
(ref: string, entities: ReadonlyArray<ApiEntity>)

Source from the content-addressed store, hash-verified

24})
25
26const 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
37describe("snapshot diff", () => {
38 it("matches renames, classifies signature changes, and separates suggestions", () => {

Callers 1

Diff.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected