Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Expose a way to emulate -r option #50

Open
spalger opened this issue Jan 12, 2016 · 0 comments
Open

Expose a way to emulate -r option #50

spalger opened this issue Jan 12, 2016 · 0 comments

Comments

@spalger
Copy link

spalger commented Jan 12, 2016

When using mocha via the command line you can specify files with -rwhich will cause them to be required before your tests are. This is useful for doing setup, but it seems there is no way to do that with simplemocha.

How do you feel about a setup option that receives the Mocha instance and can execute arbitrary operations before mocha is actually run?

@spalger spalger changed the title Expose a way to emulate mocha's -r option Expose a way to emulate -r option Jan 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant