-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mocha): allow plugin to pick up .mocharc files
We want to delegate as much configuration to tools themselves rather than exposing options via Tool Kit. Unfortunately, the mocha plugin was invoking mocha with a low-level API and skipping the code which reads configuration files, meaning that users could not set options like they can with plugins such as Jest and Webpack. To solve this let's just invoke the mocha CLI directly rather than via a lower-level API so that it calls all the setup code it would for a normal invocation, including looking for configuration files. The user can also set the path for the config file explicitly in the Tool Kit options. The files that mocha reads can now be set in its own configuration file so we don't really need to have them be set by Tool Kit. The option to do so might be removed in a future major release of the plugin.
- Loading branch information
1 parent
d8eacaa
commit 1ef9fd5
Showing
3 changed files
with
35 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters