Skip to content

feat(plugin-coverage): add setup wizard binding - #1273

Merged
hanna-skryl merged 6 commits into
mainfrom
coverage-plugin-binding
Mar 20, 2026
Merged

feat(plugin-coverage): add setup wizard binding#1273
hanna-skryl merged 6 commits into
mainfrom
coverage-plugin-binding

Conversation

@hanna-skryl

@hanna-skrylhanna-skryl commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

Closes#1254

Coverage plugin binding for the setup wizard. Auto-detects Jest/Vitest, prompts for coverage options with smart defaults, and generates plugin initialization code.

For Jest/Vitest, generateConfig receives the wizard's virtual tree and uses magicast (0.3.x, as the latest 0.5.x is incompatible with our moduleResolution: "node") to add an LCOV reporter to the test config. If the modification fails, a comment is prepended to pluginInit to remind the user to configure LCOV manually.

@nx-cloud

nx-cloudBot commented Mar 19, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit c0584a5

CommandStatusDurationResult
nx run ci:code-pushup -- merge-diffs --files=/h...✅ Succeeded5sView ↗
nx run-many --targets=code-pushup --parallel=fa...✅ Succeeded1m 29sView ↗
nx run-many --targets=code-pushup --parallel=fa...✅ Succeeded13m 12sView ↗
nx run-many -t unit-test,int-test✅ Succeeded1m 25sView ↗

☁️ Nx Cloud last updated this comment at 2026-03-20 13:26:19 UTC

@pkg-pr-new

pkg-pr-newBot commented Mar 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

@code-pushup/ci

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/ci@1273

@code-pushup/cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/cli@1273

@code-pushup/core

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/core@1273

@code-pushup/create-cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/create-cli@1273

@code-pushup/models

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/models@1273

@code-pushup/nx-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/nx-plugin@1273

@code-pushup/axe-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/axe-plugin@1273

@code-pushup/coverage-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/coverage-plugin@1273

@code-pushup/eslint-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/eslint-plugin@1273

@code-pushup/js-packages-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/js-packages-plugin@1273

@code-pushup/jsdocs-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/jsdocs-plugin@1273

@code-pushup/lighthouse-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/lighthouse-plugin@1273

@code-pushup/typescript-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/typescript-plugin@1273

@code-pushup/utils

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/utils@1273

commit: c0584a5

@github-actions

github-actionsBot commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit f620c71 with previous commit 28ccfcb.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Updates🟡 72🟡 73↑ +0.5
Performance🔴 36🔴 36↑ +0.3
Documentation🟡 52🟡 52↓ −0.1
Code coverage🟢 92🟢 92↑ +0.1
Bug prevention🟡 75🟡 75↓ −0.1
Axe Accessibility🟡 88🟡 88↓ −0.1
Code style🟢 100🟢 100
Security🔴 0🔴 0
Type Safety🟡 67🟡 67
Miscellaneous🟡 67🟡 67
Accessibility🟢 92🟢 92
Best Practices🟢 100🟢 100
SEO🟢 92🟢 92
👍 3 groups improved, 👎 1 group regressed, 👍 8 audits improved, 👎 3 audits regressed, 14 audits changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
JS packagesnpm outdated dependencies🟡 72🟡 73↑ +0.5
LighthousePerformance🔴 36🔴 36↑ +0.3
JSDocs coverageDocumentation coverage🟡 52🟡 52↓ −0.1
Code coverageCode coverage metrics🟢 92🟢 92↑ +0.1

30 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
LighthouseMax Potential First Input Delay🟥 710 ms🟥 560 ms↓ −20.6 %
LighthouseFirst Contentful Paint🟥 3.3 s🟥 3.2 s↓ −1.6 %
JS packagesOutdated npm dev dependencies.🟨 61 outdated package versions (32 major, 24 minor, 5 patch)🟨 62 outdated package versions (33 major, 23 minor, 6 patch)↑ +1.6 %
LighthouseSpeed Index🟥 6.1 s🟥 6.0 s↓ −0.3 %
JS packagesOutdated npm prod dependencies.🟨 22 outdated package versions (7 major, 12 minor, 3 patch)🟨 23 outdated package versions (7 major, 13 minor, 3 patch)↑ +4.5 %
JSDocs coverageVariables coverage🟥 291 undocumented variables🟥 302 undocumented variables↑ +3.8 %
JSDocs coverageFunctions coverage🟥 635 undocumented functions🟥 646 undocumented functions↑ +1.7 %
JSDocs coverageTypes coverage🟥 279 undocumented types🟥 281 undocumented types↑ +0.7 %
Code coverageFunction coverage🟩 94 %🟩 94 %↑ +0.1 %
Code coverageLine coverage🟩 92.1 %🟩 92.2 %↑ +0.1 %
Code coverageBranch coverage🟨 89.1 %🟨 89.1 %↑ +0.1 %
LighthouseLargest Contentful Paint🟥 14.0 s🟥 9.9 s↓ −29.3 %
LighthouseUses efficient cache policy on static assets🟨 31 resources found🟨 31 resources found↑ +0.4 %
LighthouseAvoids enormous network payloads🟩 Total size was 2,417 KiB🟩 Total size was 2,416 KiB↓ −0.1 %
LighthouseServer Backend Latencies🟩 1,390 ms🟩 330 ms↓ −76.1 %
LighthouseReduce unused JavaScript🟥 Potential savings of 298 KiB🟥 Potential savings of 297 KiB↓ −32 %
LighthouseRemove duplicate modules in JavaScript bundles🟥 Potential savings of 112 KiB🟥 Potential savings of 108 KiB↓ −64.3 %
LighthouseJavaScript execution time🟥 3.3 s🟥 3.6 s↑ +8.6 %
LighthouseMinimizes main-thread work🟥 10.3 s🟥 10.1 s↓ −2 %
LighthouseTime to Interactive🟥 14.7 s🟥 14.5 s↓ −1.4 %
LighthouseMetrics🟩 100%🟩 100%↓ −1.4 %
LighthouseReduce unused CSS🟥 Potential savings of 111 KiB🟥 Potential savings of 77 KiB↓ −40 %
LighthouseTotal Blocking Time🟥 2,050 ms🟥 2,100 ms↑ +2.5 %
LighthouseNetwork Round Trip Times🟩 50 ms🟩 70 ms↑ +35.1 %
LighthouseInitial server response time was short🟩 Root document took 500 ms🟩 Root document took 500 ms↑ +1.4 %

653 other audits are unchanged.

@github-actions

github-actionsBot commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit f620c71 with previous commit 28ccfcb.

💼 Project plugin-coverage

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 92🟢 93↑ +1.5
Documentation🟡 69🟡 68↓ −1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 3 audits improved, 👎 1 audit regressed, 2 audits changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 92🟢 93↑ +1.5
JSDocs coverageDocumentation coverage🟡 69🟡 68↓ −1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDocs coverageFunctions coverage🟥 22 undocumented functions🟥 33 undocumented functions↑ +50 %
Code coverageFunction coverage🟩 93.5 %🟩 95.7 %↑ +2.2 %
Code coverageLine coverage🟨 89.1 %🟩 91 %↑ +2.2 %
Code coverageBranch coverage🟨 89.6 %🟨 89.7 %↑ +0.1 %
JSDocs coverageVariables coverage🟥 13 undocumented variables🟥 24 undocumented variables↑ +84.6 %
JSDocs coverageTypes coverage🟥 8 undocumented types🟥 10 undocumented types↑ +25 %

438 other audits are unchanged.

💼 Project models

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Documentation🟡 67🟡 67↑ +0.1
Code coverage🟢 94🟢 94↓ −0.1

2 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 1 audit improved, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
JSDocs coverageDocumentation coverage🟡 67🟡 67↑ +0.1
Code coverageCode coverage metrics🟢 94🟢 94↓ −0.1

10 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDocs coverageTypes coverage🟥 64 undocumented types🟥 64 undocumented types +0 %
Code coverageLine coverage🟩 95 %🟩 94.6 %↓ −0.4 %

435 other audits are unchanged.

💼 Project create-cli

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 90🟢 90↑ +0.1

5 other categories are unchanged.

👍 1 group improved, 👍 1 audit improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 90🟢 90↑ +0.1

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟩 91.2 %🟩 91.2 %↑ +0.1 %

442 other audits are unchanged.


11 other projects are unchanged.

@hanna-skryl
hanna-skryl marked this pull request as ready for review March 19, 2026 00:28

@matejchalkmatejchalk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The new adjustments mechanism is very elegant. 👍

Comment threadpackages/create-cli/README.md Outdated
Comment threadpackages/plugin-coverage/src/lib/binding.ts Outdated
Comment threadpackages/plugin-coverage/src/lib/config-file.unit.test.ts
Comment threadpackages/plugin-coverage/src/lib/config-file.unit.test.ts Outdated
Comment threadpackages/plugin-coverage/src/lib/config-file.unit.test.ts

@matejchalkmatejchalk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(I clicked Approve automatically without thinking. 🤦)

Comment threadpackages/models/src/lib/plugin-setup.ts Outdated
Comment threadpackages/plugin-coverage/src/lib/binding.unit.test.ts
@hanna-skryl
hanna-skryl merged commit c91375e into mainMar 20, 2026
24 checks passed
@hanna-skryl
hanna-skryl deleted the coverage-plugin-binding branch March 20, 2026 14:10
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧩 coverage-plugin🧩 create-cli🧩 models📖 Project documentationimprovements or additions to the project documentation🔬 testingwriting tests🛠️ tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage plugin setup wizard

2 participants

@hanna-skryl@matejchalk