Skip to content

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

Open
hanna-skryl wants to merge 1 commit intomainfrom
coverage-plugin-binding
Open

feat(plugin-coverage): add setup wizard binding#1273
hanna-skryl wants to merge 1 commit intomainfrom
coverage-plugin-binding

Conversation

@hanna-skryl
Copy link
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, it produces adjustments (a new field on PluginCodegenResult) that adds an LCOV reporter to the test config using magicast (0.3.x, as the latest 0.5.x is incompatible with our moduleResolution: "node").

@nx-cloud
Copy link

nx-cloud bot commented Mar 19, 2026

View your CI Pipeline Execution ↗ for commit 6876789

Command Status Duration Result
nx run ci:code-pushup -- merge-diffs --files=/h... ✅ Succeeded 6s View ↗
nx run-many --targets=code-pushup --parallel=fa... ✅ Succeeded 1m 34s View ↗
nx run-many --targets=code-pushup --parallel=fa... ✅ Succeeded 14m View ↗
nx run-many -t unit-test,int-test ✅ Succeeded 2s View ↗

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 19, 2026

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: 6876789

@github-actions
Copy link
Contributor

Code PushUp

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

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Performance 🔴 36 🔴 35 ↓ −0.8
Updates 🟡 72 🟡 73 ↑ +0.7
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
👍 2 groups improved, 👎 2 groups regressed, 👍 5 audits improved, 👎 6 audits regressed, 15 audits changed without impacting score

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Lighthouse Performance 🔴 36 🔴 35 ↓ −0.8
JS packages npm outdated dependencies 🟡 72 🟡 73 ↑ +0.7
JSDocs coverage Documentation coverage 🟡 52 🟡 52 ↓ −0.1
Code coverage Code coverage metrics 🟢 92 🟢 92 ↑ +0.1

30 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Lighthouse Speed Index 🟥 6.1 s 🟥 6.5 s ↑ +6.6 %
Lighthouse First Contentful Paint 🟥 3.3 s 🟥 3.1 s ↓ −4 %
Lighthouse Total Blocking Time 🟥 2,050 ms 🟥 2,430 ms ↑ +18.7 %
Lighthouse Max Potential First Input Delay 🟥 710 ms 🟥 1,280 ms ↑ +80 %
Lighthouse Time to Interactive 🟥 14.7 s 🟥 14.4 s ↓ −2.2 %
JS packages Outdated 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 coverage Variables coverage 🟥 291 undocumented variables 🟥 301 undocumented variables ↑ +3.4 %
JSDocs coverage Types coverage 🟥 279 undocumented types 🟥 282 undocumented types ↑ +1.1 %
JSDocs coverage Functions coverage 🟥 635 undocumented functions 🟥 646 undocumented functions ↑ +1.7 %
Code coverage Line coverage 🟩 92.1 % 🟩 92.2 % ↑ +0.1 %
Code coverage Branch coverage 🟨 89.1 % 🟨 89.1 % ↑ +0.1 %
Lighthouse Avoids enormous network payloads 🟩 Total size was 2,417 KiB 🟩 Total size was 2,424 KiB ↑ +0.3 %
Lighthouse Minimizes main-thread work 🟥 10.3 s 🟥 12.0 s ↑ +16.3 %
Lighthouse Server Backend Latencies 🟩 1,390 ms 🟩 250 ms ↓ −82.3 %
Lighthouse Largest Contentful Paint 🟥 14.0 s 🟥 13.1 s ↓ −6.6 %
Lighthouse Reduce unused JavaScript 🟥 Potential savings of 298 KiB 🟥 Potential savings of 297 KiB ↓ −39.5 %
Lighthouse Remove duplicate modules in JavaScript bundles 🟥 Potential savings of 112 KiB 🟥 Potential savings of 102 KiB ↓ −82.1 %
Lighthouse JavaScript execution time 🟥 3.3 s 🟥 3.9 s ↑ +16 %
Lighthouse Uses efficient cache policy on static assets 🟨 31 resources found 🟨 31 resources found ↑ +0.1 %
Lighthouse Metrics 🟩 100% 🟩 100% ↓ −2.2 %
Lighthouse Reduce unused CSS 🟥 Potential savings of 111 KiB 🟥 Potential savings of 111 KiB ↑ +22 %
Lighthouse Network Round Trip Times 🟩 50 ms 🟩 20 ms ↓ −68.2 %
Lighthouse Initial server response time was short 🟩 Root document took 500 ms 🟩 Root document took 480 ms ↓ −2.8 %
Lighthouse Avoids an excessive DOM size 🟥 2,348 elements 🟥 2,347 elements ↓ −0.1 %
Code coverage Function coverage 🟩 94 % 🟩 94 % ↑ +0.1 %
Lighthouse Cumulative Layout Shift 🟩 0 🟩 0 ↓ −100 %

652 other audits are unchanged.

@github-actions
Copy link
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit dd537d9 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
Documentation 🟡 69 🟡 68 ↓ −0.6
Code coverage 🟢 92 🟢 92 ↑ +0.2

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
JSDocs coverage Documentation coverage 🟡 69 🟡 68 ↓ −0.6
Code coverage Code coverage metrics 🟢 92 🟢 92 ↑ +0.2

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
JSDocs coverage Functions coverage 🟥 22 undocumented functions 🟥 32 undocumented functions ↑ +45.5 %
Code coverage Line coverage 🟨 89.1 % 🟩 90.7 % ↑ +1.8 %
Code coverage Branch coverage 🟨 89.6 % 🟨 89.7 % ↑ +0.1 %
Code coverage Function coverage 🟩 93.5 % 🟩 93.6 % ↑ +0.1 %
JSDocs coverage Variables coverage 🟥 13 undocumented variables 🟥 23 undocumented variables ↑ +76.9 %
JSDocs coverage Types coverage 🟥 8 undocumented types 🟥 11 undocumented types ↑ +37.5 %

438 other audits are unchanged.

💼 Project create-cli

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage 🟢 90 🟢 90 ↑ +0.1
Documentation 🔴 24 🔴 24 ↓ −0.1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 2 audits improved, 👎 2 audits regressed

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage Code coverage metrics 🟢 90 🟢 90 ↑ +0.1
JSDocs coverage Documentation coverage 🔴 24 🔴 24 ↓ −0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Code coverage Line coverage 🟩 91.2 % 🟩 90.9 % ↓ −0.3 %
JSDocs coverage Functions coverage 🟥 51 undocumented functions 🟥 52 undocumented functions ↑ +2 %
Code coverage Function coverage 🟨 89.9 % 🟩 90 % ↑ +0.2 %
Code coverage Branch coverage 🟩 90.8 % 🟩 90.9 % ↑ +0.1 %

439 other audits are unchanged.

💼 Project models

😟 Code PushUp report has regressed.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage 🟢 94 🟢 94 ↓ −0.1

3 other categories are unchanged.

👎 1 group regressed, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage Code coverage metrics 🟢 94 🟢 94 ↓ −0.1

11 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Code coverage Line coverage 🟩 95 % 🟩 94.8 % ↓ −0.2 %

436 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
@hanna-skryl hanna-skryl requested a review from matejchalk as a code owner March 19, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage plugin setup wizard

1 participant