We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ea5b6 commit 905c48fCopy full SHA for 905c48f
test/parallel/test-runner-subtest-after-hook.js
@@ -0,0 +1,12 @@
1
+'use strict';
2
+const common = require('../common');
3
+const { test } = require('node:test');
4
+
5
+// Regression test for https://github.com/nodejs/node/issues/51997
6
+test('after hook should be called with no subtests', (t) => {
7
+ const timer = setTimeout(common.mustNotCall(), 2 ** 30);
8
9
+ t.after(common.mustCall(() => {
10
+ clearTimeout(timer);
11
+ }));
12
+});
0 commit comments