UNPKG

ava

Version:

Node.js test runner that lets you develop with confidence.

14 lines (10 loc) 305 B
import process from 'node:process'; import {completionHandlers} from './state.js'; export function runCompletionHandlers() { for (const handler of completionHandlers) { process.nextTick(() => handler()); } } export function registerCompletionHandler(handler) { completionHandlers.push(handler); }