-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deconstruct and normalize CLI options in one place
Instead of passing the whole object with all the CLI options down to `singleRun` and `watchRun` and then to `collecFiles` we create a dedicated object with all the parameters for collecting test files and pass this object. This approach has the advantage that we only make only the options that are strictly necessary available to the two `run` functions. This also consolidates the normalization of CLI options in one place (`runMocha`) instead of spreading it also to `collectFiles`.
- Loading branch information
Thomas Scholtes
committed
Jun 25, 2019
1 parent
0c63f7b
commit ad0a13d
Showing
3 changed files
with
47 additions
and
34 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
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
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