refactor(nestjs): e2e test cases

This commit is contained in:
Ahmed Bouhuolia
2025-03-31 00:39:00 +02:00
parent caff6ce47c
commit ab717b96ac
28 changed files with 168 additions and 115 deletions

View File

@@ -2,6 +2,7 @@ import { ItemEntryDto } from '@/modules/TransactionItemEntry/dto/ItemEntry.dto';
import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import {
ArrayMinSize,
IsArray,
IsBoolean,
IsDate,
@@ -92,7 +93,7 @@ export class CommandSaleEstimateDto {
branchId?: number;
@IsArray()
@MinLength(1)
@ArrayMinSize(1)
@ValidateNested({ each: true })
@Type(() => SaleEstimateEntryDto)
@ApiProperty({