Skip to content

UIBULKED-403 Plugin wasn't called when switching between tabs #2142

UIBULKED-403 Plugin wasn't called when switching between tabs

UIBULKED-403 Plugin wasn't called when switching between tabs #2142

GitHub Actions / Jest Unit Test Results failed Feb 2, 2024 in 0s

1 fail, 1 skipped, 189 pass in 2m 59s

    1 files  ±0    32 suites   - 1   2m 59s ⏱️ -8s
191 tests  - 4  189 ✔️  - 4  1 💤 ±0  1 ±0 
194 runs   - 4  192 ✔️  - 4  1 💤 ±0  1 ±0 

Results for commit 397505a. ± Comparison against earlier commit 7372fa4.

Annotations

Check warning on line 0 in useRecordTypes should return recordTypes, loading state, and error state

See this annotation in the file changed.

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

useRecordTypes should return recordTypes, loading state, and error state (useRecordTypes should return recordTypes, loading state, and error state) failed

artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'enabled')
    at useRecordTypes (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/hooks/api/useRecordTypes.js:6:34)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/src/hooks/api/useRecordTypes.test.js:43:47
    at TestComponent (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14)
    at renderWithHooks (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
    at mountIndeterminateComponent (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
    at beginWork (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
    at beginWork$1 (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
    at performUnitOfWork (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
    at performSyncWorkOnRoot (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:26085:20)
    at flushSyncCallbacks (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:12042:22)
    at flushSync (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:26201:7)
    at legacyCreateRootFromDOMContainer (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:29575:5)
    at legacyRenderSubtreeIntoContainer (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:29601:12)
    at Object.render (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom.development.js:29685:10)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react-hooks/lib/dom/pure.js:78:27
    at act (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react/cjs/react.development.js:2512:16)
    at render (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react-hooks/lib/dom/pure.js:77:26)
    at renderHook (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react-hooks/lib/core/index.js:114:5)
    at _callee$ (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/hooks/api/useRecordTypes.test.js:43:26)
    at tryCatch (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
    at new Promise (<anonymous>)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12
    at act (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react/cjs/react.development.js:2512:16)
    at _callee2$ (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/hooks/api/useRecordTypes.test.js:42:14)
    at tryCatch (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
    at new Promise (<anonymous>)
    at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12)
    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)