()
| 117 | |
| 118 | // Pull source error propagates to consumer |
| 119 | async function testPullSourceError() { |
| 120 | async function* failingSource() { |
| 121 | yield [new TextEncoder().encode('a')]; |
| 122 | throw new Error('source boom'); |
| 123 | } |
| 124 | await assert.rejects(async () => { |
| 125 | // eslint-disable-next-line no-unused-vars |
| 126 | for await (const _ of pull(failingSource())) { /* consume */ } |
| 127 | }, { message: 'source boom' }); |
| 128 | } |
| 129 | |
| 130 | // Tap callback error propagates through pipeline |
| 131 | async function testTapCallbackError() { |
no test coverage detected