You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when --all is used we require all modules that match a glob pattern. This causes these files to be instrumented and a baseline coverage to be established in the main process.
Requiring all modules has a few problems:
The files may need to be transpiled, so --require needs to be used
Get a list of modules matching the glob pattern, without requiring them
Run the subprocesses
Built the coverage report for the subprocesses
For all modules found in step 1, that are not in the coverage report, synthesize coverage reports directly in nyc without instrumenting the files. We can generate these for the actual source and no transpiling should be necessary
Once we do this we may even be able to remove the --require flag, shifting transpilation responsibilities to the subprocess.
The text was updated successfully, but these errors were encountered:
Currently when
--all
is used we require all modules that match a glob pattern. This causes these files to be instrumented and a baseline coverage to be established in the main process.Requiring all modules has a few problems:
--require
needs to be usedInstead what we should do:
Once we do this we may even be able to remove the
--require
flag, shifting transpilation responsibilities to the subprocess.The text was updated successfully, but these errors were encountered: