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

Method prepareSnapshot

packages/tools/api-diff/src/Worktrees.ts:221–231  ·  view source on GitHub ↗
(options: PrepareSnapshotOptions)

Source from the content-addressed store, hash-verified

219 })
220
221 const prepareSnapshot = (options: PrepareSnapshotOptions): Effect.Effect<ApiSnapshot, ApiDiffError> =>
222 prepareSnapshotInternal(options).pipe(
223 Effect.mapError((cause) =>
224 isApiDiffError(cause)
225 ? cause
226 : new ApiDiffError({
227 message: `Could not prepare the ${options.name} API snapshot`,
228 cause
229 })
230 )
231 )
232
233 return Worktrees.of({
234 prepareSnapshot,

Callers 2

Worktrees.test.tsFile · 0.80
ApiDiffClass · 0.80

Calls 2

isApiDiffErrorFunction · 0.90
pipeMethod · 0.65

Tested by

no test coverage detected