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

chore[@aws-amplify/graphql-category-api]: suppress reexport and type-only files from coverage metrics #3087

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

palpatim
Copy link
Member

Description of changes

Suppress reexport and type-only files from coverage metrics in specified package.

Description of how you validated changes

Local test

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@palpatim palpatim requested a review from a team as a code owner December 19, 2024 22:07
@palpatim palpatim force-pushed the palpatim.chore.fix-import-and-type-coverage-metrics branch from 62d1217 to 6456512 Compare December 19, 2024 22:13
@palpatim palpatim force-pushed the palpatim.chore.fix-import-and-type-coverage-metrics branch from 6456512 to acbf9bd Compare December 19, 2024 22:16
@palpatim palpatim enabled auto-merge (squash) December 19, 2024 22:17
@@ -2,11 +2,4 @@ const baseConfig = require('../../jest.config.base.js'); // eslint-disable-line

module.exports = {
...baseConfig,
coverageThreshold: {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious why we want to remove the threshold?

Copy link
Member Author

@palpatim palpatim Dec 19, 2024

Choose a reason for hiding this comment

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

Because we have a global threshold of 90% in jest.config.base.js, from which the package-specific configs extend: https://github.com/aws-amplify/amplify-category-api/blob/main/jest.config.base.js#L16-L21

The overrides were only needed to reduce the threshold in a package where we haven't yet achieved it.

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.

2 participants