teableio/teable

View on GitHub
apps/nestjs-backend/test/utils/init-app.ts

Summary

Maintainability
B
5 hrs
Test Coverage

File init-app.ts has 411 lines of code (exceeds 300 allowed). Consider refactoring.
Open

/* eslint-disable sonarjs/no-duplicate-string */
import { ValidationPipe } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { WsAdapter } from '@nestjs/platform-ws';
import type { TestingModule } from '@nestjs/testing';
Severity: Minor
Found in apps/nestjs-backend/test/utils/init-app.ts - About 4 hrs to fix

    Function updateRecordByApi has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      tableId: string,
      recordId: string,
      fieldId: string,
      newValue: unknown,
      expectStatus = 200,
    Severity: Minor
    Found in apps/nestjs-backend/test/utils/init-app.ts - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status