apps/nestjs-backend/test/sort.e2e-spec.ts
File sort.e2e-spec.ts
has 370 lines of code (exceeds 300 allowed). Consider refactoring. Open
Open
/* eslint-disable sonarjs/no-duplicate-string */
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { INestApplication } from '@nestjs/common';
import type {
IDateFieldOptions,
Avoid too many return
statements within this function. Open
Open
return (cellValue as any)[0];
Avoid too many return
statements within this function. Open
Open
return formatDateToString(cellValue as string, (options as IDateFieldOptions).formatting);
Avoid too many return
statements within this function. Open
Open
return cellValue
.map((v) => formatDateToString(v, (options as IDateFieldOptions).formatting))
.join(', ');