-
Notifications
You must be signed in to change notification settings - Fork 536
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
build(client-presence): type and lint fixes #23169
build(client-presence): type and lint fixes #23169
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Coverage Summary
↓ packages.framework.presence.src:
Line Coverage Change: -1.21% Branch Coverage Change: -0.63%
Metric Name | Baseline coverage | PR coverage | Coverage Diff |
---|---|---|---|
Branch Coverage | 88.57% | 87.94% | ↓ -0.63% |
Line Coverage | 73.96% | 72.75% | ↓ -1.21% |
Baseline commit: eac1018
Baseline build: 309591
Happy Coding!!
Code coverage comparison check failed!!
More Details: Readme
- Skip This Check!!
What to do if the code coverage check fails:
-
Ideally, add more tests to increase the code coverage for the package(s) whose code-coverage regressed.
-
If a regression is causing the build to fail and is due to removal of tests, removal of code with lots of tests or any other valid reason, there is a checkbox further up in this comment that determines if the code coverage check should fail the build or not. You can check the box and trigger the build again. The test coverage analysis will still be done, but it will not fail the build if a regression is detected.
-
Unchecking the checkbox and triggering another build should go back to failing the build if a test-coverage regression is detected.
-
You can check which lines are covered or not covered by your tests with these steps:
- Go to the PR ADO build.
- Click on the link to see its published artifacts. You will see an artifact named
codeCoverageAnalysis
, which you can expand to reach to a particular source file's coverage html which will show which lines are covered/not covered by your tests. - You can also run different kind of tests locally with
:coverage
tests commands to find out the coverage.
80fc0be
to
9fb977a
Compare
Disabling the code coverage comparison check as it is counting comments and types for coverable lines and erroneously finding a coverage regression. |
⯅ @fluid-example/bundle-size-tests: +245 Bytes
Baseline commit: eac1018 |
* | ||
* @internal | ||
*/ | ||
export const objectEntries = Object.entries as <T>(o: T) => KeyValuePairs<T>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these helpers be migrated to core-utils?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe. I don't like to pre-emptively place utilities in a shared space without more than one use. Certainly, consider if these are generally useful as you look at fixing things. If they are, then we refactor.
Minor production runtime changes with introduction of getOrCreateRecord helper and retyping of Object.entries/keys utilities.
9fb977a
to
d6e3c1c
Compare
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Minor production runtime changes with introduction of getOrCreateRecord helper and retyping of Object.entries/keys utilities.