Summary
The Intersection Observer hook that drives infinite scroll on the creator list has no unit tests. Tests should confirm the callback fires when the observed element enters the viewport and does not fire when it is out of view.
Scope
- Mock the Intersection Observer API in the test environment
- Test that the provided callback is called when the observed element becomes visible
- Test that the callback is not called when the element is not intersecting
- Test that the observer is disconnected when the hook unmounts
- Test that the observer is not created when
enabled is false
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The Intersection Observer hook that drives infinite scroll on the creator list has no unit tests. Tests should confirm the callback fires when the observed element enters the viewport and does not fire when it is out of view.
Scope
enabledis falseAcceptance Criteria
enabled: falseETA: 12 hours
Coordinate on Telegram