repo_description: Node.js test runner that lets you develop with confidence 🚀
repo_topics: assert async async-functions ava cli cli-app concurrency javascript node nodejs performance tap tdd test-framework test-runner testing unicorns unit-testing
code: 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);
  }
  