(workos: EmulatorClient, input: FaultArmInput)
| 180 | /** Arm a fault on the shared emulator and take it back down with the scope, by |
| 181 | * id — a blanket `faults.clear()` would also disarm a neighbouring scenario's. */ |
| 182 | const armFault = (workos: EmulatorClient, input: FaultArmInput) => |
| 183 | Effect.acquireRelease( |
| 184 | Effect.promise(() => workos.faults.arm(input)), |
| 185 | (armed) => Effect.promise(() => workos.faults.clear(armed.id)).pipe(Effect.ignore), |
| 186 | ); |
| 187 | |
| 188 | /** How many responses this armed fault actually injected, read back from the |
| 189 | * emulator's ledger. This is the proof that the failure under test HAPPENED: |
no test coverage detected