Files
Kmake/test/fixtures/test-runner/output/abort-runs-after-hook.js
2026-05-26 23:36:42 -07:00

15 lines
302 B
JavaScript

'use strict';
const { test } = require('node:test');
test('test that aborts', (t, done) => {
t.after(() => {
// This should still run.
console.log('AFTER');
});
setImmediate(() => {
// This creates an uncaughtException, which aborts the test.
throw new Error('boom');
});
});