Skip to content

UIBULKED-497: fix lint and logic #3212

UIBULKED-497: fix lint and logic

UIBULKED-497: fix lint and logic #3212

GitHub Actions / Jest Unit Test Results failed Oct 26, 2024 in 0s

1 fail, 285 pass in 3m 4s

    1 files  ±    0    44 suites  +16   3m 4s ⏱️ + 2m 34s
286 tests +116  285 ✔️ +115  0 💤 ±0  1 +1 
293 runs  +123  292 ✔️ +122  0 💤 ±0  1 +1 

Results for commit e515906. ± Comparison against earlier commit b6576ac.

Annotations

Check warning on line 0 in useBulkOperationDetails should initialize with the correct refetch interval and query key

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

useBulkOperationDetails should initialize with the correct refetch interval and query key (useBulkOperationDetails should initialize with the correct refetch interval and query key) failed

artifacts/jest-junit/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: ObjectContaining {"enabled": true, "queryKey": ["BULK_OPERATION_DETAILS_KEY", "namespace-key", "test-id", 5000], "refetchInterval": 5000}
Received: {"enabled": true, "queryFn": [Function fetchBulkOperationDetails], "queryKey": ["BULK_OPERATION_DETAILS_KEY", "namespace-key", 0, "test-id"]}

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/hooks/api/useBulkOperationDetails.test.js:57:22)
    at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
    at new Promise (<anonymous>)
    at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
    at processTicksAndRejections (node:internal/process/task_queues:95:5)