(
options: {
auth?: Layer.Layer<Auth.Service>
account?: Layer.Layer<Account.Service>
client?: HttpClient.HttpClient
} = {},
)
| 92 | } |
| 93 | |
| 94 | const configLayer = ( |
| 95 | options: { |
| 96 | auth?: Layer.Layer<Auth.Service> |
| 97 | account?: Layer.Layer<Account.Service> |
| 98 | client?: HttpClient.HttpClient |
| 99 | } = {}, |
| 100 | ) => |
| 101 | LayerNode.compile(LayerNode.group([Config.node, FSUtil.node, Env.node, CrossSpawnSpawner.node]), [ |
| 102 | [Auth.node, options.auth ?? AuthTest.empty], |
| 103 | [Account.node, options.account ?? AccountTest.empty], |
| 104 | [Npm.node, NpmTest.noop], |
| 105 | [httpClient, Layer.succeed(HttpClient.HttpClient, options.client ?? unexpectedHttp)], |
| 106 | ]) |
| 107 | |
| 108 | const layer = configLayer() |
| 109 |
no outgoing calls
no test coverage detected