This module should not take responsibility for loading configuration from disk. Instead it should use the following priorities:
Get configuration from plugin options if provided
Take configuration from process.env.NYC_CONFIG if options were not provided
Assume {} (just use default options).
Currently the third priority is to try loading options from nyc configuration file - I think this should be removed in the next semver-major. The configuration load is async and requires using spawnSync to read configuration from the babel plugins so this is bad.
This won't be an issue for jest which passes an options object to the plugin, it won't be an issue for anyone using @babel/register under nyc which sets NYC_CONFIG.
This module should not take responsibility for loading configuration from disk. Instead it should use the following priorities:
process.env.NYC_CONFIG
if options were not provided{}
(just use default options).Currently the third priority is to try loading options from nyc configuration file - I think this should be removed in the next semver-major. The configuration load is async and requires using
spawnSync
to read configuration from the babel plugins so this is bad.This won't be an issue for jest which passes an options object to the plugin, it won't be an issue for anyone using
@babel/register
under nyc which setsNYC_CONFIG
.