fix: resolve ESLint errors and improve CI/CD workflows #42
deploy-production.yml
on: push
Run Tests and Linting
29s
Deploy to Production
0s
Annotations
10 errors
|
ChannelError: Failed to start: Could not find Chrome (ver. 145.0.7632.46). This can occur if either:
src/lib/messaging/channels/whatsapp-channel.ts#L144
2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at start (/home/runner/work/Luvora/Luvora/src/lib/messaging/channels/whatsapp-channel.ts:144:19)
at async <anonymous> (/home/runner/work/Luvora/Luvora/src/lib/messaging/__tests__/whatsapp-channel.test.ts:160:27)
|
|
ChannelError: Failed to start: Could not find Chrome (ver. 145.0.7632.46). This can occur if either:
src/lib/messaging/channels/whatsapp-channel.ts#L144
2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at start (/home/runner/work/Luvora/Luvora/src/lib/messaging/channels/whatsapp-channel.ts:144:19)
at async <anonymous> (/home/runner/work/Luvora/Luvora/src/lib/messaging/__tests__/whatsapp-channel.test.ts:147:27)
|
|
ChannelError: Failed to start: Could not find Chrome (ver. 145.0.7632.46). This can occur if either:
src/lib/messaging/channels/whatsapp-channel.ts#L144
2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at start (/home/runner/work/Luvora/Luvora/src/lib/messaging/channels/whatsapp-channel.ts:144:19)
at async <anonymous> (/home/runner/work/Luvora/Luvora/src/lib/messaging/__tests__/whatsapp-channel.test.ts:136:27)
|
|
ChannelError: Failed to start: Could not find Chrome (ver. 145.0.7632.46). This can occur if either:
src/lib/messaging/channels/whatsapp-channel.ts#L144
2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at start (/home/runner/work/Luvora/Luvora/src/lib/messaging/channels/whatsapp-channel.ts:144:19)
at async <anonymous> (/home/runner/work/Luvora/Luvora/src/lib/messaging/__tests__/whatsapp-channel.test.ts:130:27)
|
|
ChannelError: Failed to start: Could not find Chrome (ver. 145.0.7632.46). This can occur if either:
src/lib/messaging/channels/whatsapp-channel.ts#L144
2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at start (/home/runner/work/Luvora/Luvora/src/lib/messaging/channels/whatsapp-channel.ts:144:19)
at async <anonymous> (/home/runner/work/Luvora/Luvora/src/lib/messaging/__tests__/whatsapp-channel.test.ts:125:27)
|
|
TypeError: mock(module:
src/lib/messaging/__tests__/messaging-service.test.ts#L37
at /home/runner/work/Luvora/Luvora/src/lib/messaging/__tests__/messaging-service.test.ts:37:4
at loadAndEvaluateModule (2:1)
|
|
error: Received value must be an array type:
tests/api/health.test.ts#L100
at <anonymous> (/home/runner/work/Luvora/Luvora/tests/api/health.test.ts:100:45)
|
|
error: expect(received).toBe(expected):
tests/api/health.test.ts#L83
Expected: "Connection failed"
Received: undefined
at <anonymous> (/home/runner/work/Luvora/Luvora/tests/api/health.test.ts:83:48)
|
|
TestingLibraryElementError: Unable to find an element by: [data-testid="admin-content"]:
node_modules/@testing-library/dom/dist/wait-for.js#L163
Ignored nodes: comments, script, style
<body>
<div>
<div
class="min-h-screen flex items-center justify-center bg-base-200 p-4"
>
<div
class="text-center"
>
<div
class="w-20 h-20 rounded-full bg-error/10 flex items-center justify-center mx-auto mb-4"
>
<svg
aria-hidden="true"
class="lucide lucide-lock w-10 h-10 text-error"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<rect
height="11"
rx="2"
ry="2"
width="18"
x="3"
y="11"
/>
<path
d="M7 11V7a5 5 0 0 1 10 0v4"
/>
</svg>
</div>
<h1
class="text-2xl font-bold text-base-content mb-2"
>
Access Denied
</h1>
<p
class="text-base-content/60 mb-6"
>
You don't have permission to access this area.
</p>
<a
href="/"
>
Go Home
</a>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="min-h-screen flex items-center justify-center bg-base-200 p-4"
>
<div
class="text-center"
>
<div
class="w-20 h-20 rounded-full bg-error/10 flex items-center justify-center mx-auto mb-4"
>
<svg
aria-hidden="true"
class="lucide lucide-lock w-10 h-10 text-error"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<rect
height="11"
rx="2"
ry="2"
width="18"
x="3"
y="11"
/>
<path
d="M7 11V7a5 5 0 0 1 10 0v4"
/>
</svg>
</div>
<h1
class="text-2xl font-bold text-base-content mb-2"
>
Access Denied
</h1>
<p
class="text-base-content/60 mb-6"
>
You don't have permission to access this area.
</p>
<a
href="/"
>
Go Home
</a>
</div>
</div>
</div>
</body>
</html>
at waitForWrapper (/home/runner/work/Luvora/Luvora/node_modules/@testing-library/dom/dist/wait-for.js:163:31)
at /home/runner/work/Luvora/Luvora/tests/unit/guards.test.tsx:323:15
|
|
TestingLibraryElementError: Unable to find an element by: [data-testid="admin-content"]:
node_modules/@testing-library/dom/dist/wait-for.js#L163
Ignored nodes: comments, script, style
<body>
<div>
<div
class="min-h-screen flex items-center justify-center bg-base-200 p-4"
>
<div
class="text-center"
>
<div
class="w-20 h-20 rounded-full bg-error/10 flex items-center justify-center mx-auto mb-4"
>
<svg
aria-hidden="true"
class="lucide lucide-lock w-10 h-10 text-error"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<rect
height="11"
rx="2"
ry="2"
width="18"
x="3"
y="11"
/>
<path
d="M7 11V7a5 5 0 0 1 10 0v4"
/>
</svg>
</div>
<h1
class="text-2xl font-bold text-base-content mb-2"
>
Access Denied
</h1>
<p
class="text-base-content/60 mb-6"
>
You don't have permission to access this area.
</p>
<a
href="/"
>
Go Home
</a>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="min-h-screen flex items-center justify-center bg-base-200 p-4"
>
<div
class="text-center"
>
<div
class="w-20 h-20 rounded-full bg-error/10 flex items-center justify-center mx-auto mb-4"
>
<svg
aria-hidden="true"
class="lucide lucide-lock w-10 h-10 text-error"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<rect
height="11"
rx="2"
ry="2"
width="18"
x="3"
y="11"
/>
<path
d="M7 11V7a5 5 0 0 1 10 0v4"
/>
</svg>
</div>
<h1
class="text-2xl font-bold text-base-content mb-2"
>
Access Denied
</h1>
<p
class="text-base-content/60 mb-6"
>
You don't have permission to access this area.
</p>
<a
href="/"
>
Go Home
</a>
</div>
</div>
</div>
</body>
</html>
at waitForWrapper (/home/runner/work/Luvora/Luvora/node_modules/@testing-library/dom/dist/wait-for.js:163:31)
at /home/runner/work/Luvora/Luvora/tests/unit/guards.test.tsx:357:37
|