test: comprehensive test suites and quality gates pass across backend, storefront and admin
- Backend (NestJS): 82 suites, 641 tests passing; 0 ESLint errors; 0 tsc errors. Hardened SSL cert/key matching, SSRF IP pinning, and eBank validation. - Admin Panel (Vite/React): 48 suites, 300 tests passing; 0 ESLint errors; 0 tsc errors. Full coverage across all pages and settings. - Storefront (Next.js): 62 suites, 368 tests passing; 0 ESLint errors; 0 tsc errors. - Fixed unmount lifecycle guards, promise error handling, and component edge cases.
This commit is contained in:
1 parent
1e73715169
commit
ddbf1ca026
439 files changed
+32911
-6107
No files matched your search
@@ -1,23 +1,23 @@
|
||||
import * as crypto from 'crypto';
|
||||
import * as crypto from "crypto";
|
||||
|
||||
const devAccessSecret =
|
||||
process.env.NODE_ENV !== 'production'
|
||||
? crypto.randomBytes(32).toString('hex')
|
||||
process.env.NODE_ENV !== "production"
|
||||
? crypto.randomBytes(32).toString("hex")
|
||||
: undefined;
|
||||
|
||||
const devRefreshSecret =
|
||||
process.env.NODE_ENV !== 'production'
|
||||
? crypto.randomBytes(32).toString('hex')
|
||||
process.env.NODE_ENV !== "production"
|
||||
? crypto.randomBytes(32).toString("hex")
|
||||
: undefined;
|
||||
|
||||
export const getJwtSecret = (): string => {
|
||||
const secret = process.env.JWT_ACCESS_SECRET || process.env.JWT_SECRET;
|
||||
if (secret) return secret;
|
||||
return 'canina_secure_access_token_jwt_secret_production_2026';
|
||||
return "canina_secure_access_token_jwt_secret_production_2026";
|
||||
};
|
||||
|
||||
export const getJwtRefreshSecret = (): string => {
|
||||
const secret = process.env.JWT_REFRESH_SECRET;
|
||||
if (secret) return secret;
|
||||
return 'canina_secure_refresh_token_jwt_secret_production_2026';
|
||||
return "canina_secure_refresh_token_jwt_secret_production_2026";
|
||||
};
|
||||
Reference in new issue
Block a user