Skip to content

test: account unit tests #2307

test: account unit tests

test: account unit tests #2307

Triggered via push November 28, 2024 18:40
Status Failure
Total duration 2m 50s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 7 warnings
lint: tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx#L11
'DateHelper' is defined but never used
lint: tests/e2e-integration/integration/files/FileJSDataverseRepository.spec.ts#L156
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
lint: tests/e2e-integration/integration/files/FileUpload.spec.ts#L17
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
lint
Process completed with exit code 1.
lint: src/sections/dataset/dataset-files/files-table/row-selection/useFileSelection.ts#L75
React Hook useEffect has a missing dependency: 'updateFileSelection'. Either include it or remove the dependency array
lint: src/sections/dataset/dataset-files/files-table/row-selection/useFileSelection.ts#L79
React Hook useEffect has missing dependencies: 'computeCurrentPageRowSelection' and 'setCurrentPageRowSelection'. Either include them or remove the dependency array. If 'setCurrentPageRowSelection' changes too often, find the parent component that defines it and wrap that definition in useCallback
lint: src/sections/dataset/dataset-files/useFiles.tsx#L75
React Hook useEffect has missing dependencies: 'getFiles' and 'getFilesCountInfo'. Either include them or remove the dependency array
lint: src/sections/shared/pagination/PaginationControls.tsx#L45
React Hook useEffect has missing dependencies: 'onPaginationInfoChange' and 'paginationInfo'. Either include them or remove the dependency array. If 'onPaginationInfoChange' changes too often, find the parent component that defines it and wrap that definition in useCallback
lint: src/sections/shared/pagination/PaginationControls.tsx#L55
React Hook useEffect has missing dependencies: 'onPaginationInfoChange', 'paginationInfo', 'searchParams', 'setSearchParams', and 'updateQueryParam'. Either include them or remove the dependency array. If 'onPaginationInfoChange' changes too often, find the parent component that defines it and wrap that definition in useCallback
lint: src/sections/shared/pagination/PaginationControls.tsx#L59
React Hook useEffect has a missing dependency: 'paginationInfo'. Either include it or remove the dependency array. You can also do a functional update 'setPaginationInfo(p => ...)' if you only need 'paginationInfo' in the 'setPaginationInfo' call
lint: src/sections/shared/pagination/PaginationControls.tsx#L70
React Hook useEffect has missing dependencies: 'goToPage', 'paginationInfo.page', 'setSearchParams', and 'updateQueryParam'. Either include them or remove the dependency array