feat: add experimental InfiniteScroll component #394
Annotations
7 errors
Unhandled error:
src/scroll/InfiniteScroll.tsx#L111
ReferenceError: requestIdleCallback is not defined
❯ observer.current.IntersectionObserver.rootMargin.rootMargin src/scroll/InfiniteScroll.tsx:111:15
❯ test/test-utils.ts:44:9
❯ node_modules/@testing-library/react/dist/act-compat.js:48:24
❯ act node_modules/react/cjs/react.development.js:2512:16
❯ Proxy.<anonymous> node_modules/@testing-library/react/dist/act-compat.js:47:25
❯ listener test/test-utils.ts:43:7
❯ callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30
❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25
❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3
❯ EventTargetImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9
This error originated in "test/InfiniteScroll.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "loads photos asynchronously". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
src/scroll/InfiniteScroll.tsx#L111
ReferenceError: requestIdleCallback is not defined
❯ observer.current.IntersectionObserver.rootMargin.rootMargin src/scroll/InfiniteScroll.tsx:111:15
❯ test/test-utils.ts:44:9
❯ node_modules/@testing-library/react/dist/act-compat.js:48:24
❯ act node_modules/react/cjs/react.development.js:2512:16
❯ Proxy.<anonymous> node_modules/@testing-library/react/dist/act-compat.js:47:25
❯ listener test/test-utils.ts:43:7
❯ callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30
❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25
❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3
❯ EventTargetImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9
This error originated in "test/InfiniteScroll.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "handles fetch errors". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
src/scroll/InfiniteScroll.tsx#L111
ReferenceError: requestIdleCallback is not defined
❯ observer.current.IntersectionObserver.rootMargin.rootMargin src/scroll/InfiniteScroll.tsx:111:15
❯ test/test-utils.ts:44:9
❯ node_modules/@testing-library/react/dist/act-compat.js:48:24
❯ act node_modules/react/cjs/react.development.js:2512:16
❯ Proxy.<anonymous> node_modules/@testing-library/react/dist/act-compat.js:47:25
❯ listener test/test-utils.ts:43:7
❯ callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30
❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25
❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3
❯ EventTargetImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9
This error originated in "test/InfiniteScroll.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "handles fetch errors". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
src/scroll/InfiniteScroll.tsx#L111
ReferenceError: requestIdleCallback is not defined
❯ observer.current.IntersectionObserver.rootMargin.rootMargin src/scroll/InfiniteScroll.tsx:111:15
❯ test/test-utils.ts:44:9
❯ node_modules/@testing-library/react/dist/act-compat.js:48:24
❯ act node_modules/react/cjs/react.development.js:2512:16
❯ Proxy.<anonymous> node_modules/@testing-library/react/dist/act-compat.js:47:25
❯ listener test/test-utils.ts:43:7
❯ callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30
❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25
❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3
❯ EventTargetImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9
This error originated in "test/InfiniteScroll.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "handles fetch errors". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
test/InfiniteScroll.spec.tsx > InfiniteScroll > loads photos asynchronously:
test/InfiniteScroll.spec.tsx#L35
AssertionError: expected +0 to be 21 // Object.is equality
- Expected
+ Received
- 21
+ 0
❯ test/InfiniteScroll.spec.tsx:35:32
|
test/InfiniteScroll.spec.tsx > InfiniteScroll > handles fetch errors:
test/InfiniteScroll.spec.tsx#L64
AssertionError: expected null to be truthy
- Expected:
null
+ Received:
false
❯ test/InfiniteScroll.spec.tsx:64:34
|
Release
Process completed with exit code 1.
|