Skip to content

setting html DANGEROUSLY #3089

setting html DANGEROUSLY

setting html DANGEROUSLY #3089

Triggered via push May 9, 2024 18:12
Status Failure
Total duration 1m 28s
Artifacts

ci.yml

on: push
Matrix: Test
Matrix: Visual Tests
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 2 warnings
__tests__/index.test.js > image: __tests__/index.test.js#L40
Error: Snapshot `image 1` mismatched - Expected + Received - "<p><span aria-label="Image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="http://example.com/image.png" width="auto" height="auto" title="" class="img img-align- " alt="Image" loading="eager"></span></span></p>" + "<p><span aria-label="Image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="http://example.com/image.png" width="auto" height="auto" title="" class="img img-align- " alt="Image" loading="lazy"></span></span></p>" ❯ __tests__/index.test.js:40:31
__tests__/components/HTMLBlock.test.jsx: components/HTMLBlock/index.tsx#L21
TypeError: Cannot read properties of null (reading 'useEffect') ❯ Proxy.useEffect node_modules/react/cjs/react.development.js:1634:21 ❯ Module.HTMLBlock [as default] components/HTMLBlock/index.tsx:21:3 ❯ __tests__/components/HTMLBlock.test.jsx:10:19
__tests__/components/index.test.ts > Components > Image: __tests__/components/index.test.ts#L141
Error: Snapshot `Components > Image 1` mismatched - Expected + Received - "<p><span aria-label="Bro eats pizza and makes an OK gesture." class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="https://files.readme.io/6f52e22-man-eating-pizza-and-making-an-ok-gesture.jpg" width="auto" height="auto" title="Pizza Face" class="img img-align- " alt="Bro eats pizza and makes an OK gesture." loading="eager"></span></span></p>" + "<p><span aria-label="Bro eats pizza and makes an OK gesture." class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="https://files.readme.io/6f52e22-man-eating-pizza-and-making-an-ok-gesture.jpg" width="auto" height="auto" title="Pizza Face" class="img img-align- " alt="Bro eats pizza and makes an OK gesture." loading="lazy"></span></span></p>" ❯ __tests__/components/index.test.ts:141:33
Test (lts/-1, 18)
Process completed with exit code 1.
Test (lts/-1, 16)
The job was canceled because "lts_-1_18" failed.
__tests__/index.test.js > image: __tests__/index.test.js#L40
Error: Snapshot `image 1` mismatched - Expected + Received - "<p><span aria-label="Image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="http://example.com/image.png" width="auto" height="auto" title="" class="img img-align- " alt="Image" loading="eager"></span></span></p>" + "<p><span aria-label="Image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="http://example.com/image.png" width="auto" height="auto" title="" class="img img-align- " alt="Image" loading="lazy"></span></span></p>" ❯ __tests__/index.test.js:40:31
__tests__/components/HTMLBlock.test.jsx: components/HTMLBlock/index.tsx#L21
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. ❯ resolveDispatcher node_modules/react/cjs/react.development.js:1465:13 ❯ Proxy.useEffect node_modules/react/cjs/react.development.js:1508:20 ❯ Module.HTMLBlock [as default] components/HTMLBlock/index.tsx:21:3 ❯ __tests__/components/HTMLBlock.test.jsx:10:19
__tests__/components/index.test.ts > Components > Image: __tests__/components/index.test.ts#L141
Error: Snapshot `Components > Image 1` mismatched - Expected + Received - "<p><span aria-label="Bro eats pizza and makes an OK gesture." class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="https://files.readme.io/6f52e22-man-eating-pizza-and-making-an-ok-gesture.jpg" width="auto" height="auto" title="Pizza Face" class="img img-align- " alt="Bro eats pizza and makes an OK gesture." loading="eager"></span></span></p>" + "<p><span aria-label="Bro eats pizza and makes an OK gesture." class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="https://files.readme.io/6f52e22-man-eating-pizza-and-making-an-ok-gesture.jpg" width="auto" height="auto" title="Pizza Face" class="img img-align- " alt="Bro eats pizza and makes an OK gesture." loading="lazy"></span></span></p>" ❯ __tests__/components/index.test.ts:141:33
Test (lts/-1, 16)
The operation was canceled.
Test (lts/-1, 17)
The job was canceled because "lts_-1_18" failed.
__tests__/index.test.js > image: __tests__/index.test.js#L40
Error: Snapshot `image 1` mismatched - Expected + Received - "<p><span aria-label="Image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="http://example.com/image.png" width="auto" height="auto" title="" class="img img-align- " alt="Image" loading="eager"></span></span></p>" + "<p><span aria-label="Image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="http://example.com/image.png" width="auto" height="auto" title="" class="img img-align- " alt="Image" loading="lazy"></span></span></p>" ❯ __tests__/index.test.js:40:31
__tests__/components/HTMLBlock.test.jsx: components/HTMLBlock/index.tsx#L21
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. ❯ resolveDispatcher node_modules/react/cjs/react.development.js:1476:13 ❯ Proxy.useEffect node_modules/react/cjs/react.development.js:1519:20 ❯ Module.HTMLBlock [as default] components/HTMLBlock/index.tsx:21:3 ❯ __tests__/components/HTMLBlock.test.jsx:10:19
__tests__/components/index.test.ts > Components > Image: __tests__/components/index.test.ts#L141
Error: Snapshot `Components > Image 1` mismatched - Expected + Received - "<p><span aria-label="Bro eats pizza and makes an OK gesture." class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="https://files.readme.io/6f52e22-man-eating-pizza-and-making-an-ok-gesture.jpg" width="auto" height="auto" title="Pizza Face" class="img img-align- " alt="Bro eats pizza and makes an OK gesture." loading="eager"></span></span></p>" + "<p><span aria-label="Bro eats pizza and makes an OK gesture." class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="https://files.readme.io/6f52e22-man-eating-pizza-and-making-an-ok-gesture.jpg" width="auto" height="auto" title="Pizza Face" class="img img-align- " alt="Bro eats pizza and makes an OK gesture." loading="lazy"></span></span></p>" ❯ __tests__/components/index.test.ts:141:33
Test (lts/-1, 17)
The operation was canceled.
Test (latest, 17)
The job was canceled because "lts_-1_18" failed.
Test (latest, 17)
The operation was canceled.
Test (latest, 16)
The job was canceled because "lts_-1_18" failed.
Test (latest, 16)
The operation was canceled.
Test (lts/*, 16)
The job was canceled because "lts_-1_18" failed.
Test (lts/*, 16)
The operation was canceled.
Test (latest, 18)
The job was canceled because "lts_-1_18" failed.
Test (latest, 18)
The operation was canceled.
Test (lts/*, 18)
The job was canceled because "lts_-1_18" failed.
Test (lts/*, 18)
The operation was canceled.
Test (lts/*, 17)
The job was canceled because "lts_-1_18" failed.
Test (lts/*, 17)
The operation was canceled.
Test (lts/-1, 18)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Visual Tests (20.x, 18)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.