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,15 +1,15 @@
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsOptional, IsInt, Min, IsString, IsEnum } from 'class-validator';
|
||||
import { Type } from 'class-transformer';
|
||||
import { ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { IsOptional, IsInt, Min, IsString, IsEnum } from "class-validator";
|
||||
import { Type } from "class-transformer";
|
||||
|
||||
export enum SortOrder {
|
||||
ASC = 'asc',
|
||||
DESC = 'desc',
|
||||
ASC = "asc",
|
||||
DESC = "desc",
|
||||
}
|
||||
|
||||
export class PaginationDto {
|
||||
@ApiPropertyOptional({
|
||||
description: 'شماره صفحه (شروع از ۱)',
|
||||
description: "شماره صفحه (شروع از ۱)",
|
||||
minimum: 1,
|
||||
default: 1,
|
||||
})
|
||||
@@ -20,7 +20,7 @@ export class PaginationDto {
|
||||
page?: number = 1;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: 'تعداد آیتمها در هر صفحه',
|
||||
description: "تعداد آیتمها در هر صفحه",
|
||||
minimum: 1,
|
||||
default: 10,
|
||||
})
|
||||
@@ -31,15 +31,15 @@ export class PaginationDto {
|
||||
limit?: number = 10;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: 'فیلد برای مرتبسازی',
|
||||
default: 'createdAt',
|
||||
description: "فیلد برای مرتبسازی",
|
||||
default: "createdAt",
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
sortBy?: string = 'createdAt';
|
||||
sortBy?: string = "createdAt";
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: 'جهت مرتبسازی (asc/desc)',
|
||||
description: "جهت مرتبسازی (asc/desc)",
|
||||
enum: SortOrder,
|
||||
default: SortOrder.DESC,
|
||||
})
|
||||
@@ -47,7 +47,7 @@ export class PaginationDto {
|
||||
@IsEnum(SortOrder)
|
||||
sortOrder?: SortOrder = SortOrder.DESC;
|
||||
|
||||
@ApiPropertyOptional({ description: 'عبارت جستجو' })
|
||||
@ApiPropertyOptional({ description: "عبارت جستجو" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
search?: string;
|
||||
|
||||
Reference in new issue
Block a user