Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tests to AdminX framework package #19022

Merged
merged 9 commits into from
Nov 20, 2023
Merged

Conversation

binary-koan
Copy link
Contributor

@binary-koan binary-koan commented Nov 16, 2023

refs https://github.com/TryGhost/Product/issues/4159


🤖[deprecated] Generated by Copilot at 9e68f4d

This pull request refactors several components in the admin-x-settings app to use common hooks from the @tryghost/admin-x-framework package, which reduces code duplication and improves consistency. It also updates the package.json file and adds unit tests for the admin-x-framework package, which improves the formatting, testing, and dependency management. Additionally, it makes some minor changes to the hooks.ts, FrameworkProvider.tsx, and .eslintrc.cjs files in the admin-x-framework package, which enhance the public API and the linting configuration.

@binary-koan binary-koan self-assigned this Nov 16, 2023
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b4fa565) 72.77% compared to head (2384e2d) 72.77%.
Report is 3 commits behind head on main.

❗ Current head 2384e2d differs from pull request most recent head be0c3ec. Consider uploading reports for the commit be0c3ec to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #19022   +/-   ##
=======================================
  Coverage   72.77%   72.77%           
=======================================
  Files        1251     1251           
  Lines       72611    72609    -2     
  Branches     9602     9601    -1     
=======================================
- Hits        52840    52839    -1     
- Misses      18989    18990    +1     
+ Partials      782      780    -2     
Flag Coverage Δ
admin-tests 40.95% <ø> (-0.01%) ⬇️
e2e-tests 81.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@binary-koan binary-koan merged commit 5e057de into main Nov 20, 2023
20 checks passed
@binary-koan binary-koan deleted the admin-x-framework-tests branch November 20, 2023 11:00
cmraible pushed a commit to cmraible/Ghost that referenced this pull request Nov 21, 2023
refs TryGhost/Product#4159

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖[[deprecated]](https://githubnext.com/copilot-for-prs-sunset)
Generated by Copilot at 9e68f4d</samp>

This pull request refactors several components in the `admin-x-settings`
app to use common hooks from the `@tryghost/admin-x-framework` package,
which reduces code duplication and improves consistency. It also updates
the `package.json` file and adds unit tests for the `admin-x-framework`
package, which improves the formatting, testing, and dependency
management. Additionally, it makes some minor changes to the `hooks.ts`,
`FrameworkProvider.tsx`, and `.eslintrc.cjs` files in the
`admin-x-framework` package, which enhance the public API and the
linting configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant