avajs / ava

Node.js test runner that lets you develop with confidence 🚀
MIT License
20.73k stars 1.4k forks source link

registerCompletionHandler can't be used in CommonJS project #3306

Closed sosnovsky closed 7 months ago

sosnovsky commented 7 months ago

Please provide details about:

novemberborn commented 7 months ago

This is intentional. Mostly to avoid polluting the default export in CJS, which is shared with ESM. Also because usage ought to be rare enough that you can work around it in CJS using dynamic import.