Fix failing tests: #22
Annotations
2 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.
|
test
Process completed with exit code 1.
|