Closed mantoni closed 3 years ago
This change allows to configure mochify in package.json and various config file formats.
package.json
Users can specify a file with the --config option. If a config file is specified and a default configuration is also present, the configs are merged.
--config
Command line options override the config file options. A custom config file overrides settings from the default config.
Thanks for the review. I have refactored the whole thing to be more straight forward, use the cosmiconfig defaults and implement merging of the default configs, specified configs and command line options.
This change allows to configure mochify in
package.json
and various config file formats.Users can specify a file with the
--config
option. If a config file is specified and a default configuration is also present, the configs are merged.Command line options override the config file options. A custom config file overrides settings from the default config.