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

Function extract

packages/tools/api-diff/test/Diff.test.ts:83–89  ·  view source on GitHub ↗
(repoRoot: string, ref: string)

Source from the content-addressed store, hash-verified

81 const fs = yield* FileSystem.FileSystem
82 const snapshotter = yield* Snapshotter
83 const extract = (repoRoot: string, ref: string) =>
84 snapshotter.extract({
85 repoRoot,
86 ref,
87 sha: ref.repeat(40),
88 modules: ["@fixture/sample/Value"]
89 })
90 const baseRoot = yield* fs.makeTempDirectoryScoped({ prefix: "api-diff-literal-base-" })
91 const headRoot = yield* fs.makeTempDirectoryScoped({ prefix: "api-diff-literal-head-" })
92 yield* writeFixturePackage(baseRoot, { "Value.d.ts": "export type Value = 1\n" })

Callers 1

Diff.test.tsFile · 0.70

Calls 1

extractMethod · 0.80

Tested by

no test coverage detected