style: fix linter issue #8813
ci.yml
on: push
Build & Validate
29s
ESLint & Prettier
37s
Test
2m 18s
Matrix: Deploy Vite Example to Vercel
Annotations
3 errors
|
Test
Process completed with exit code 1.
|
|
src/components/Gallery/__tests__/ModalGallery.test.tsx > ModalGallery > BaseImage error handling > should retry loading the image instead of opening the modal when the thumbnail is in error state:
src/components/Gallery/__tests__/ModalGallery.test.tsx#L368
Error: expect(element).toHaveAttribute("src", "http://test-image.jpg") // element.getAttribute("src") === "http://test-image.jpg"
Expected the element to have attribute:
src="http://test-image.jpg"
Received:
src="http://test-image.jpg&retry=1777902766901"
❯ src/components/Gallery/__tests__/ModalGallery.test.tsx:368:28
|
|
Unhandled error:
src/components/ChannelListItem/ChannelListItem.tsx#L137
ReferenceError: window is not defined
❯ resolveUpdatePriority node_modules/react-dom/cjs/react-dom-client.development.js:1230:7
❯ requestUpdateLane node_modules/react-dom/cjs/react-dom-client.development.js:14251:11
❯ dispatchSetState node_modules/react-dom/cjs/react-dom-client.development.js:7160:46
❯ src/components/ChannelListItem/ChannelListItem.tsx:137:11
❯ invokeFunc node_modules/lodash.throttle/index.js:160:19
❯ trailingEdge node_modules/lodash.throttle/index.js:207:14
❯ Timeout.timerExpired [as _onTimeout] node_modules/lodash.throttle/index.js:195:14
This error originated in "src/components/ChannelList/__tests__/ChannelList.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
|