Skip to content

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

Merged
Ghislain89 merged 31 commits intomainfrom
test/code-coverage
Nov 7, 2023
Merged

Use shared vitest config and enable thresholdAutoUpdate for some packages.#1169
Ghislain89 merged 31 commits intomainfrom
test/code-coverage

Conversation

@Ghislain89
Copy link
Copy Markdown
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.


@changeset-bot
Copy link
Copy Markdown

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

@vercel
Copy link
Copy Markdown

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

Comment thread packages/apps/tools/vitest.config.ts
Copy link
Copy Markdown
Contributor

@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
@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