Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.

fix: remove include prop from nyc config - #9

Closed
mdonnalley wants to merge 1 commit into
mainfrom
mdonnalley/fix-nyc
Closed

fix: remove include prop from nyc config#9
mdonnalley wants to merge 1 commit into
mainfrom
mdonnalley/fix-nyc

Conversation

@mdonnalley

Copy link
Copy Markdown
Contributor

@W-11670631@

@mdonnalley mdonnalley self-assigned this Aug 30, 2022

@cristiand391 cristiand391 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested using plugin-alias, removed include prop from node_modules/@salesforce/dev-config/nyc.json and increased code cov to 100%, nyc still pass even though coverage is below 100%.

The only change needed is to remove the nyc prop from the .nycrc file in each repo, which dev-scripts does if you delete the .nycrc file and run yarn install, template: https://github.com/forcedotcom/dev-scripts/blob/main/files/nycrc

re: overriding settings
there's an open PR to fix this in nyc: istanbuljs/load-nyc-config#19

@mdonnalley

Copy link
Copy Markdown
Contributor Author

Tested using plugin-alias, removed include prop from node_modules/@salesforce/dev-config/nyc.json and increased code cov to 100%, nyc still pass even though coverage is below 100%.

The only change needed is to remove the nyc prop from the .nycrc file in each repo, which dev-scripts does if you delete the .nycrc file and run yarn install, template: https://github.com/forcedotcom/dev-scripts/blob/main/files/nycrc

re: overriding settings there's an open PR to fix this in nyc: istanbuljs/load-nyc-config#19

@cristiand391 interesting. It seems that our nyc-config works for some plugins (like plugin-alias) but not for others (like ones generated using plugin-dev)...

Guess I'll go back to the drawing board

@mdonnalley mdonnalley closed this Aug 31, 2022
@mdonnalley
mdonnalley deleted the mdonnalley/fix-nyc branch August 31, 2022 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants