(options: PrepareSnapshotOptions)
| 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, |
no test coverage detected