Version
Latest development (@main)
Module resolution
Others or unrelated
Bundler
Others or unrelated
Environment
Others or unrelated
Test case
describe('when iterating', () => {
let iterator: AsyncIterableIterator<number>;
let values: number[];
beforeEach(async () => {
fn.mockImplementationOnce(() => [1, 2, 3].values());
iterator = rpc.withOptions({ signal: abortController.signal })({ hello: 'World!' });
values = [];
for await (const value of iterator) {
values.push(value);
break;
}
});
test('should throw on iterator?', () => {});
});
Coding sandbox URL
No response
Console errors
No response
Screenshots
No response
Additional context
What should happen when calling next() after break (which probably called return())?
Version
Latest development (@main)
Module resolution
Others or unrelated
Bundler
Others or unrelated
Environment
Others or unrelated
Test case
Coding sandbox URL
No response
Console errors
No response
Screenshots
No response
Additional context
What should happen when calling
next()after break (which probably calledreturn())?