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

Use shared vitest config and enable thresholdAutoUpdate for some packages. #1169

Merged
merged 31 commits into from
Nov 7, 2023

Conversation

Ghislain89
Copy link
Contributor

@Ghislain89 Ghislain89 commented Nov 3, 2023

Currently vitest is configured to gather code coverage in CI as well as not run in watch mode. After various tests both of these do not seem to work correctly. This PR aims to fix this behaviour.

With this PR, all relevant packages now correctly depend on the shared vitest configuration and only override settings that are package specific. Code coverage is now collected again.

There are some packages that do not meet the globally defined criteria defined in the @kadena-dev/shared-config package. The current coverage levels have been set as baseline for these packages and ThresholdAutoUpdated has been enabled. As developers work to improve coverage, the baseline will be increased as well.

The following packages are impacted by this:

  • chainweb-node-client
  • tools dApp
  • chainweb-stream-client
  • client-utils
  • kadena/client
  • react-ui <-- Ran in to issues for this one. Disabled Threshold updater for this package

The result wil be that, gradually code coverage will be increased for packages that are touched often until they meet the globally defined defaults.


Copy link

changeset-bot bot commented Nov 3, 2023

🦋 Changeset detected

Latest commit: 3d5d02c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Nov 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
alpha-docs ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 9:15am
docs-storybook ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 9:15am
react-ui ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 9:15am
tools ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 9:15am

Copy link
Collaborator

@javadkh2 javadkh2 left a comment

Choose a reason for hiding this comment

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

Great!

… well as locally. Removing thresholdAutoUpdate for react-ui, for now.
@Ghislain89 Ghislain89 merged commit 472b801 into main Nov 7, 2023
10 checks passed
@Ghislain89 Ghislain89 deleted the test/code-coverage branch November 7, 2023 09:20
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.

9 participants