Throws when the pass writes its first edge, as a full disk would.
()
| 491 | |
| 492 | /** Throws when the pass writes its first edge, as a full disk would. */ |
| 493 | function failingFlowEdges(): void { |
| 494 | const insert = QueryBuilder.prototype.insertEdges; |
| 495 | vi.spyOn(QueryBuilder.prototype, 'insertEdges').mockImplementation(function (this: QueryBuilder, edges) { |
| 496 | if (edges.some((edge) => edge.metadata?.parameterFlow !== undefined)) throw new Error('stopped'); |
| 497 | return insert.call(this, edges); |
| 498 | }); |
| 499 | } |
| 500 | |
| 501 | it('leaves the old edge in place, and the next sync finishes the job', async () => { |
| 502 | failingFlowEdges(); |
no test coverage detected