(headers?: Record<string, string>)
| 19 | const it = testEffect(LayerNode.compile(LayerNode.group([SessionStatus.node, CrossSpawnSpawner.node]))) |
| 20 | |
| 21 | function apiError(headers?: Record<string, string>): SessionV1.APIError { |
| 22 | return Schema.decodeUnknownSync(SessionV1.APIError.Schema)( |
| 23 | new SessionV1.APIError({ |
| 24 | message: "boom", |
| 25 | isRetryable: true, |
| 26 | responseHeaders: headers, |
| 27 | }).toObject(), |
| 28 | ) |
| 29 | } |
| 30 | |
| 31 | function wrap(message: unknown): ReturnType<NamedError["toObject"]> { |
| 32 | return { name: "", data: { message } } |