Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

feat: allow mocha.run() to be opted out of with autoRun=false #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keithamus
Copy link

This PR adds the facility for disabling automatic calling of mocha.run(). It returns early if config.autoRun === false, thereby stopping the call to mocha.run(). I need this for a project I'm working on that uses a lazy build system and we need to call run once all test modules have loaded.

Happy to add docs and tests, if people are happy to see this included.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant