()
| 83 | |
| 84 | // Tap callback error propagates through async pipeline |
| 85 | async function testTapAsyncErrorPropagation() { |
| 86 | const badTap = tap(() => { throw new Error('tap error'); }); |
| 87 | await assert.rejects(async () => { |
| 88 | // eslint-disable-next-line no-unused-vars |
| 89 | for await (const _ of pull(from('hello'), badTap)) { /* consume */ } |
| 90 | }, { message: 'tap error' }); |
| 91 | } |
| 92 | |
| 93 | // TapSync callback error propagates through sync pipeline |
| 94 | function testTapSyncErrorPropagation() { |
no test coverage detected