assertFailed function test
Last updated: 2026-03-05T10:53:28.857Z
Metrics
LOC: 6
Complexity: 1
Params: 1
Signature
assertFailed(result: {
status: string;
error?: string;
}): : asserts result is { status: "failed"; error: string }
Source Code
function assertFailed(result: {
status: string;
error?: string;
}): asserts result is { status: "failed"; error: string } {
expect(result.status).toBe("failed");
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| executeStep | uses |
| highlightElement | uses |
| FlowStep | uses |
| ReplayConfig | uses |
| ExecuteStepPayload | uses |
| makeStep | calls |
| makePayload | calls |
| assertFailed | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| assertFailed | calls |