(name: string, options: RecorderOptions = {})
| 14 | * cassettes are replayed, and `CI=true` makes a missing cassette fail. |
| 15 | */ |
| 16 | export const http = (name: string, options: RecorderOptions = {}): Layer.Layer<HttpClient.HttpClient> => |
| 17 | recordingLayer(name, { |
| 18 | metadata: options.metadata, |
| 19 | redactor: make(options.redact), |
| 20 | match: options.match, |
| 21 | }).pipe( |
| 22 | Layer.provide(CassetteService.fileSystem({ directory: options.directory })), |
| 23 | Layer.provide(FetchHttpClient.layer), |
| 24 | Layer.provide(NodeFileSystem.layer), |
| 25 | ) |
nothing calls this directly
no test coverage detected