node/test/fixtures/test-runner/plan/timeout-expired.mjs
Pietro Marchini 1b655c7631
test: test runner run plan
PR-URL: https://github.com/nodejs/node/pull/57304
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2025-03-10 22:23:23 +00:00

8 lines
209 B
JavaScript

import test from 'node:test';
test('planning should FAIL when wait time expires before plan is met', (t) => {
t.plan(2, { wait: 500 });
setTimeout(() => {
t.assert.ok(true);
}, 30_000).unref();
});