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

Merged
merged 1 commit into from
Dec 23, 2024

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.

@palpatim palpatim merged commit 829ae34 into main Dec 23, 2024
7 checks passed
@palpatim palpatim deleted the palpatim.chore.fix-import-and-type-coverage-metrics branch December 23, 2024 19:13
bobbyu99 added a commit that referenced this pull request Dec 23, 2024
* chore: update .jsii assembly

* chore: update .jsii assembly

* ci: remove unused codeql config (#3079)

* docs: update readme for gen 2 (#3080)

* chore(deps-dev): bump jsii from 5.6.0 to 5.6.4 (#3082)

* chore(deps-dev): bump jsii from 5.6.0 to 5.6.4

Bumps [jsii](https://github.com/aws/jsii-compiler) from 5.6.0 to 5.6.4.
- [Release notes](https://github.com/aws/jsii-compiler/releases)
- [Changelog](https://github.com/aws/jsii-compiler/blob/main/releases.json)
- [Commits](aws/jsii-compiler@v5.6.0...v5.6.4)

---
updated-dependencies:
- dependency-name: jsii
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: regenerate .jsii

Signed-off-by: Kevin Shan <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Kevin Shan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Shan <[email protected]>

* chore: remove `@aws-cdk/assert` from `data-construct`, `api-construct`, and `transformer-core` (#3089)

* chore: remove @aws-cdk/assert dep

* chore: updated dependency licenses

* chore: removed `@aws-cdk/assert` dep from root `package.json`

* chore: remove `cfnspec` and `cloudformation` deps

* chore: suppress reexport and type-only files from coverage metrics in @aws-amplify/graphql-category-api (#3087)

* fix: remove transitive dev dependencies from bundled jsii constructs (#3092)

* remove transitive dev dependencies from jsii constructs

* update jsii

* update yarn.lock

* update dep licenses

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Kevin Shan <[email protected]>
Co-authored-by: amplify-data-ci <[email protected]>
Co-authored-by: Dane Pilcher <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Shan <[email protected]>
Co-authored-by: Tim Schmelter <[email protected]>
Co-authored-by: Ian Saultz <[email protected]>
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.

3 participants