File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 - name : Install backend dependencies
6262 run : npm --prefix apps/backend install
6363
64+ - name : Generate Prisma Client
65+ run : cd apps/backend && npx prisma generate
66+
6467 - name : Backend lint
6568 id : backend_lint
6669 continue-on-error : true
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ export async function buildApp():Promise<FastifyInstance> {
2929 // Validate all required secrets before registering any plugin.
3030 // If validation fails the process exits here — no partially-initialised
3131 // auth state can exist because Fastify is not yet instantiated.
32+ if ( process . env . NODE_ENV === 'test' ) {
33+ process . env . JWT_SECRET = process . env . JWT_SECRET || 'test-jwt-secret-that-is-sufficiently-long-and-secure' ;
34+ process . env . ENCRYPTION_KEY = process . env . ENCRYPTION_KEY || 'test-encryption-key-for-testing-purposes-32-chars' ;
35+ }
3236 validateEnv ( ) ;
3337
3438 const app = Fastify ( {
You can’t perform that action at this time.
0 commit comments