Debian Codegraph @

test/integration/fixtures/uncaught/unhandled.fixture.js

raw
1 it('should emit an unhandled rejection', async function() {
2 setTimeout(() => {
3 Promise.resolve().then(() => {
4 throw new Error('yikes');
5 });
6 });
7 });