Skip to content

Update test files

Update test files #21

Triggered via push October 14, 2024 01:39
Status Failure
Total duration 28s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Unhandled error: lib/github.ts#L9
Error: This module cannot be imported from a Client Component module. It should only be used from a Server Component. ❯ Object.<anonymous> node_modules/.pnpm/[email protected]/node_modules/server-only/index.js:1:7 ❯ Module._compile node:internal/modules/cjs/loader:1469:14 ❯ Object.Module._extensions..js node:internal/modules/cjs/loader:1548:10 ❯ Module.load node:internal/modules/cjs/loader:1288:32 ❯ Function.Module._load node:internal/modules/cjs/loader:1104:12 ❯ Module.require node:internal/modules/cjs/loader:1311:19 ❯ require node:internal/modules/helpers:179:18 ❯ Module.auth node_modules/.pnpm/@clerk[email protected][email protected]_@[email protected]_@[email protected]_react-_z5ib3ku6c6sucsz6ogvkvowhpa/node_modules/@clerk/nextjs/src/app-router/server/auth.ts:30:5 ❯ getOctokit lib/github.ts:9:22 ❯ Proxy.getLatestRunId lib/github.ts:432:25 This error originated in "app/(dashboard)/dashboard/pull-request.test.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 "updates build status periodically". 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.
app/(dashboard)/dashboard/log-view.test.tsx > LogView > renders logs and groups correctly: app/(dashboard)/dashboard/log-view.test.tsx#L61
TestingLibraryElementError: Unable to find an element with the text: file1. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="bg-gray-900 text-gray-100 rounded-lg overflow-hidden" > <div class="flex items-center justify-between p-2 bg-gray-800" > <h3 class="text-sm font-semibold" > Logs </h3> </div> <div class="h-96 overflow-y-auto p-4 font-mono text-sm" > <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" 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" > <path d="m9 18 6-6-6-6" /> </svg> <span class="font-semibold" > Other </span> </button> </div> <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" 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" > <path d="m9 18 6-6-6-6" /> </svg> <span class="font-semibold" > test </span> </button> </div> <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" 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" > <path d="m9 18 6-6-6-6" /> </svg> <span class="font-semibold" > test </span> </button> </div> </div> </div> </div> </body> Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="bg-gray-900 text-gray-100 rounded-lg overflow-hidden" > <div class="flex items-center justify-between p-2 bg-gray-800" > <h3 class="text-sm font-semibold" > Logs </h3> </div> <div class="h-96 overflow-y-auto p-4 font-mono text-sm" > <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24"
app/(dashboard)/dashboard/log-view.test.tsx > LogView > expands and collapses log groups: app/(dashboard)/dashboard/log-view.test.tsx#L77
TestingLibraryElementError: Unable to find an element with the text: file1. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="bg-gray-900 text-gray-100 rounded-lg overflow-hidden" > <div class="flex items-center justify-between p-2 bg-gray-800" > <h3 class="text-sm font-semibold" > Logs </h3> </div> <div class="h-96 overflow-y-auto p-4 font-mono text-sm" > <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" 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" > <path d="m9 18 6-6-6-6" /> </svg> <span class="font-semibold" > Other </span> </button> </div> <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" 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" > <path d="m9 18 6-6-6-6" /> </svg> <span class="font-semibold" > test </span> </button> </div> <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" 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" > <path d="m9 18 6-6-6-6" /> </svg> <span class="font-semibold" > test </span> </button> </div> </div> </div> </div> </body> Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="bg-gray-900 text-gray-100 rounded-lg overflow-hidden" > <div class="flex items-center justify-between p-2 bg-gray-800" > <h3 class="text-sm font-semibold" > Logs </h3> </div> <div class="h-96 overflow-y-auto p-4 font-mono text-sm" > <div class="mb-4" > <button class="flex items-center text-left w-full py-2 px-4 bg-gray-800 hover:bg-gray-700 rounded" > <svg class="lucide lucide-chevron-right w-4 h-4 mr-2" fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24"
test
Process completed with exit code 1.