UIF-562: add useDebouncedQuery
hook to fix endless request for `Dyn…
#1399
GitHub Actions / Jest Unit Test Results
failed
Nov 25, 2024 in 0s
3 fail, 2 skipped, 588 pass in 3m 59s
Annotations
github-actions / Jest Unit Test Results
DynamicSelection should call debounced fetch function when 'onFilter' was triggered (DynamicSelection should call debounced fetch function when 'onFilter' was triggered) failed
artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'join')
at getNamespace (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@folio/stripes-core/src/components/Namespace/useNamespace.js:34:99)
at useNamespace (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@folio/stripes-core/src/components/Namespace/useNamespace.js:43:21)
at useDebouncedQuery (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/hooks/useDebouncedQuery/useDebouncedQuery.js:26:35)
at DynamicSelection (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelection/DynamicSelection.js:27:24)
at renderWithHooks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at beginWork$1 (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:27465:14)
at performUnitOfWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26599:12)
at workLoopSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26505:5)
at renderRootSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26473:7)
at performSyncWorkOnRoot (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26124:20)
at flushSyncCallbacks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:12042:22)
at flushSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26240:7)
at legacyCreateRootFromDOMContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29614:5)
at legacyRenderSubtreeIntoContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29640:12)
at Object.render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29731:10)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:101:25
at act (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react/cjs/react.development.js:2512:16)
at actWithWarning (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10)
at render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:97:26)
at renderDynamicSelection (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelection/DynamicSelection.test.js:26:54)
at _callee2$ (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelection/DynamicSelection.test.js:45:5)
at tryCatch (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
at _next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7
at new Promise (<anonymous>)
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
github-actions / Jest Unit Test Results
DynamicSelection should call 'onChange' when an option from list was selected (DynamicSelection should call 'onChange' when an option from list was selected) failed
artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'join')
at getNamespace (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@folio/stripes-core/src/components/Namespace/useNamespace.js:34:99)
at useNamespace (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@folio/stripes-core/src/components/Namespace/useNamespace.js:43:21)
at useDebouncedQuery (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/hooks/useDebouncedQuery/useDebouncedQuery.js:26:35)
at DynamicSelection (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelection/DynamicSelection.js:27:24)
at renderWithHooks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at beginWork$1 (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:27465:14)
at performUnitOfWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26599:12)
at workLoopSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26505:5)
at renderRootSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26473:7)
at performSyncWorkOnRoot (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26124:20)
at flushSyncCallbacks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:12042:22)
at flushSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26240:7)
at legacyCreateRootFromDOMContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29614:5)
at legacyRenderSubtreeIntoContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29640:12)
at Object.render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29731:10)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:101:25
at act (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react/cjs/react.development.js:2512:16)
at actWithWarning (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10)
at render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:97:26)
at renderDynamicSelection (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelection/DynamicSelection.test.js:26:54)
at _callee4$ (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelection/DynamicSelection.test.js:59:5)
at tryCatch (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
at _next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7
at new Promise (<anonymous>)
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
github-actions / Jest Unit Test Results
DynamicSelectionFilter should show filter input and call 'onChange' when an option from list was selected (DynamicSelectionFilter should show filter input and call 'onChange' when an option from list was selected) failed
artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'join')
at getNamespace (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@folio/stripes-core/src/components/Namespace/useNamespace.js:34:99)
at useNamespace (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@folio/stripes-core/src/components/Namespace/useNamespace.js:43:21)
at useDebouncedQuery (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/hooks/useDebouncedQuery/useDebouncedQuery.js:26:35)
at DynamicSelection (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelection/DynamicSelection.js:27:24)
at renderWithHooks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at beginWork$1 (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:27465:14)
at performUnitOfWork (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26599:12)
at workLoopSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26505:5)
at renderRootSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26473:7)
at performSyncWorkOnRoot (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26124:20)
at flushSyncCallbacks (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:12042:22)
at flushSync (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:26240:7)
at legacyCreateRootFromDOMContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29614:5)
at legacyRenderSubtreeIntoContainer (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29640:12)
at Object.render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom.development.js:29731:10)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:101:25
at act (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react/cjs/react.development.js:2512:16)
at actWithWarning (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10)
at render (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/react/dist/pure.js:97:26)
at renderDynamicSelectionFilter (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelectionFilter/DynamicSelectionFilter.test.js:34:60)
at _callee$ (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelectionFilter/DynamicSelectionFilter.test.js:56:7)
at tryCatch (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
at _next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7
at new Promise (<anonymous>)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12
at act (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react/cjs/react.development.js:2512:16)
at actWithWarning (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10)
at _callee2$ (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/DynamicSelectionFilter/DynamicSelectionFilter.test.js:55:14)
at tryCatch (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
at _next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7
at new Promise (<anonymous>)
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Loading