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,9 +1,9 @@
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsOptional, IsInt, Min, IsString, IsBoolean } from 'class-validator';
|
||||
import { Type, Transform } from 'class-transformer';
|
||||
import { ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { IsOptional, IsInt, Min, IsString, IsBoolean } from "class-validator";
|
||||
import { Type, Transform } from "class-transformer";
|
||||
|
||||
export class DoctorQueryDto {
|
||||
@ApiPropertyOptional({ description: 'شماره صفحه', minimum: 1, default: 1 })
|
||||
@ApiPropertyOptional({ description: "شماره صفحه", minimum: 1, default: 1 })
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@@ -11,7 +11,7 @@ export class DoctorQueryDto {
|
||||
page?: number = 1;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: 'تعداد آیتم در هر صفحه',
|
||||
description: "تعداد آیتم در هر صفحه",
|
||||
minimum: 1,
|
||||
default: 50,
|
||||
})
|
||||
@@ -21,16 +21,16 @@ export class DoctorQueryDto {
|
||||
@Min(1)
|
||||
limit?: number = 50;
|
||||
|
||||
@ApiPropertyOptional({ description: 'عبارت جستجو' })
|
||||
@ApiPropertyOptional({ description: "عبارت جستجو" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
search?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'فقط پزشکان فعال' })
|
||||
@ApiPropertyOptional({ description: "فقط پزشکان فعال" })
|
||||
@IsOptional()
|
||||
@Transform(({ value }) => {
|
||||
if (value === 'true' || value === true) return true;
|
||||
if (value === 'false' || value === false) return false;
|
||||
if (value === "true" || value === true) return true;
|
||||
if (value === "false" || value === false) return false;
|
||||
return undefined;
|
||||
})
|
||||
@IsBoolean()
|
||||
|
||||
Reference in new issue
Block a user