You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): fix typecheck file-args bug and pre-existing type/lint errors
Root cause: `pnpm typecheck $backendFiles` passed explicit file paths to
`tsc --noEmit`, which causes TypeScript to ignore tsconfig.json entirely.
Without tsconfig settings (esModuleInterop, module: ESNext, etc.), tsc
fails with dozens of errors. The step had outcome='failure' despite showing
✅ in the UI (continue-on-error changes conclusion but not outcome), so
"Fail backend if checks failed" correctly triggered exit 1.
Fixes:
- ci.yml: run `prisma generate` after install; drop file args from typecheck
- package.json: add postinstall to always generate Prisma client
- app.test.ts: set JWT_SECRET + ENCRYPTION_KEY so validateEnv() passes
- validateEnv.test.ts: add null to process.exit mock param type
- cards.test.ts: cast mockPrisma as any for app.decorate
- profiles.test.ts: remove Pick<PrismaClient> annotation that hid mock types
- connect.ts / follow.ts: fix logger format, unused vars, import order
Note: pull_request_target uses base branch workflow, so this PR's CI run
uses the pre-fix workflow. These changes take effect for future PRs after
merge to main.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments