Files
Kmake/test/fixtures/test-runner/throws_sync_and_async.js

11 lines
233 B
JavaScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
'use strict';
const { test } = require('node:test');
test('fails and schedules more work', () => {
setTimeout(() => {
throw new Error('this should not have a chance to be thrown');
}, 1000);
throw new Error('fails');
});