teableio/teable

View on GitHub
apps/nestjs-backend/test/aggregation.e2e-spec.ts

Summary

Maintainability
C
7 hrs
Test Coverage

File aggregation.e2e-spec.ts has 502 lines of code (exceeds 300 allowed). Consider refactoring.
Open

import type { INestApplication } from '@nestjs/common';
import type { IGroup } from '@teable/core';
import { is, SortFunc, StatisticsFunc } from '@teable/core';
import type { IGroupHeaderPoint, ITableFullVo } from '@teable/openapi';
import { getAggregation, getGroupPoints, getRowCount, GroupPointType } from '@teable/openapi';
Severity: Major
Found in apps/nestjs-backend/test/aggregation.e2e-spec.ts - About 6 hrs to fix

    Function getViewAggregations has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        tableId: string,
        viewId: string,
        funcs: StatisticsFunc,
        fieldId: string[],
        groupBy?: IGroup
    Severity: Minor
    Found in apps/nestjs-backend/test/aggregation.e2e-spec.ts - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status