Files
Kmake/test/parallel/test-runner-subtest-after-hook.js

13 lines
350 B
JavaScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
'use strict';
const common = require('../common');
const { test } = require('node:test');
// Regression test for https://github.com/nodejs/node/issues/51997
test('after hook should be called with no subtests', (t) => {
const timer = setTimeout(common.mustNotCall(), 2 ** 30);
t.after(common.mustCall(() => {
clearTimeout(timer);
}));
});