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

Function snapshot

packages/tools/api-diff/test/Cli.test.ts:14–23  ·  view source on GitHub ↗
(ref: string, sha: string, entities: ReadonlyArray<ApiEntity> = [])

Source from the content-addressed store, hash-verified

12import * as Command from "effect/unstable/cli/Command"
13
14const snapshot = (ref: string, sha: string, entities: ReadonlyArray<ApiEntity> = []): ApiSnapshot => ({
15 version: 1,
16 compiler: { name: "typescript", version: "fixture" },
17 ref,
18 sha,
19 packages: [],
20 entrypoints: [],
21 entities,
22 diagnostics: []
23})
24
25const WorktreesTest = Layer.succeed(
26 Worktrees,

Callers 1

Cli.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected