-
Notifications
You must be signed in to change notification settings - Fork 78
feat(FR-1530): add useIntervalValue test code and fix broken test code snapshot
#4371
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
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 4.7% (+0.28% 🔼) |
533/11351 |
| 🔴 | Branches | 3.78% (+0.22% 🔼) |
303/8016 |
| 🔴 | Functions | 2.92% (+0.37% 🔼) |
103/3532 |
| 🔴 | Lines | 4.65% (+0.26% 🔼) |
516/11095 |
Test suite run success
121 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from f3b23e6
422f9d2 to
74cc01d
Compare
63d1fed to
3ecb178
Compare
74cc01d to
28a40b4
Compare
3ecb178 to
837266f
Compare
28a40b4 to
8c0883b
Compare
837266f to
9c43d1d
Compare
9c43d1d to
4e1ef17
Compare
8c0883b to
5e150d0
Compare
5e150d0 to
f7cbbe3
Compare
4e1ef17 to
874597a
Compare
f7cbbe3 to
727f503
Compare
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.
LGTM
Merge activity
|
…ode snapshot (#4371) # Add tests for useInterval and useIntervalValue hooks This PR adds comprehensive test coverage for the `useInterval` and `useIntervalValue` hooks. The tests verify: - Proper execution of callbacks at specified intervals - Pausing functionality when a window loses focus (`pauseOnWindowBlur` parameter) - Resuming execution when a window regains focus - Proper handling of null delay values The PR also includes a minor CSS class update in the DomainSelector snapshot test. ### How to test run `pnpm run test` in the react directory. **Checklist:** - [x] Test case(s) to demonstrate the difference of before/after
874597a to
a737f11
Compare
727f503 to
f3b23e6
Compare

Add tests for useInterval and useIntervalValue hooks
This PR adds comprehensive test coverage for the
useIntervalanduseIntervalValuehooks. The tests verify:pauseOnWindowBlurparameter)The PR also includes a minor CSS class update in the DomainSelector snapshot test.
How to test
run
pnpm run testin the react directory.Checklist: