UNPKG

ava

Version:

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

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