-
Notifications
You must be signed in to change notification settings - Fork 26
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: Modify jest instrumentation #1205
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1205 +/- ##
==========================================
+ Coverage 92.42% 96.55% +4.13%
==========================================
Files 64 66 +2
Lines 4552 4698 +146
Branches 560 858 +298
==========================================
+ Hits 4207 4536 +329
+ Misses 345 160 -185
- Partials 0 2 +2 |
ckomop0x
referenced
this pull request
in ckomop0x/ckomop0x.me.site
Mar 20, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ts-graphql-plugin](https://togithub.com/Quramy/ts-graphql-plugin) | [`3.0.2` -> `3.1.2`](https://renovatebot.com/diffs/npm/ts-graphql-plugin/3.0.2/3.1.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ts-graphql-plugin/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ts-graphql-plugin/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ts-graphql-plugin/3.0.2/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ts-graphql-plugin/3.0.2/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>Quramy/ts-graphql-plugin (ts-graphql-plugin)</summary> ### [`v3.1.2`](https://togithub.com/Quramy/ts-graphql-plugin/releases/tag/v3.1.2) [Compare Source](https://togithub.com/Quramy/ts-graphql-plugin/compare/v3.1.1...v3.1.2) #### What's Changed - fix: Add arguments length check by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1240](https://togithub.com/Quramy/ts-graphql-plugin/pull/1240) **Full Changelog**: Quramy/ts-graphql-plugin@v3.1.1...v3.1.2 ### [`v3.1.1`](https://togithub.com/Quramy/ts-graphql-plugin/releases/tag/v3.1.1) [Compare Source](https://togithub.com/Quramy/ts-graphql-plugin/compare/v3.1.0...v3.1.1) #### What's Changed - fix: Add addons js to npm files entries by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1238](https://togithub.com/Quramy/ts-graphql-plugin/pull/1238) **Full Changelog**: Quramy/ts-graphql-plugin@v3.1.0...v3.1.1 ### [`v3.1.0`](https://togithub.com/Quramy/ts-graphql-plugin/releases/tag/v3.1.0) [Compare Source](https://togithub.com/Quramy/ts-graphql-plugin/compare/v3.0.2...v3.1.0) #### New Features ##### 🎉 ts-graphql-plugin gets compat `graphql-codegen` 🎉 - The new `enabledGlobalFragments` option allows to analyze operation and fragments defined in different templates without interpolation(e.g. `${postFragment}`). - Function call expression is available as GraphQL document via `tag` option . In combination these, ts-graplql-plugin works with `graphql-codegen` compatible code such as: ```tsx import { graphql } from "./gql"; const postFragment = graphql(` fragment PostFragment on Post { title author { name } } `); const query = graphql(` query AppQuery { popularPosts { id ...PostFragment } } `); ``` See [example](https://togithub.com/Quramy/ts-graphql-plugin/tree/main/project-fixtures/graphql-codegen-prj) If you want more details, #### What's Changed - chore: Modify Codecov configuration by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1204](https://togithub.com/Quramy/ts-graphql-plugin/pull/1204) - chore: Modify jest instrumentation by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1205](https://togithub.com/Quramy/ts-graphql-plugin/pull/1205) - chore: Allow findAllNodes callback to return generic AST nodes by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1220](https://togithub.com/Quramy/ts-graphql-plugin/pull/1220) - Global fragment registry by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1209](https://togithub.com/Quramy/ts-graphql-plugin/pull/1209) - chore: Organize package.json by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1225](https://togithub.com/Quramy/ts-graphql-plugin/pull/1225) - feat: Add `tag` customize pattern by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1226](https://togithub.com/Quramy/ts-graphql-plugin/pull/1226) - chore: Update example report md by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1227](https://togithub.com/Quramy/ts-graphql-plugin/pull/1227) - modify prettier config by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1228](https://togithub.com/Quramy/ts-graphql-plugin/pull/1228) - docs: Add example using graphql-codegen by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1229](https://togithub.com/Quramy/ts-graphql-plugin/pull/1229) - docs: Write about `enabledGlobalFragments` by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1232](https://togithub.com/Quramy/ts-graphql-plugin/pull/1232) - fix: Transformer should uses getFragmentDependenciesForAST by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1233](https://togithub.com/Quramy/ts-graphql-plugin/pull/1233) - feat: Resolve interpolation referring call expression by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1234](https://togithub.com/Quramy/ts-graphql-plugin/pull/1234) - fix: Allow to transform CallExpression by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1235](https://togithub.com/Quramy/ts-graphql-plugin/pull/1235) - chore: Fix module name typo by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1237](https://togithub.com/Quramy/ts-graphql-plugin/pull/1237) - fix: TypedDocument addon import specifier by [@​Quramy](https://togithub.com/Quramy) in [https://github.com/Quramy/ts-graphql-plugin/pull/1236](https://togithub.com/Quramy/ts-graphql-plugin/pull/1236) #### **Full Changelog**: Quramy/ts-graphql-plugin@v3.0.2...v3.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ckomop0x/ckomop0x.me.site.v2). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2MS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Configure how to instrument sources to measure jest coverage.
Why
Now, I'm using 2 test runners:
And the number of lines measured by c8 is different form the number of lines measured by jest. By default jest registers instrumentation via babel-instanbul, it causes this problem. So, I configure jest to use the same instrumentation of c8.
bcoe/c8#500 (comment)