Guest User

Untitled

a guest
Oct 5th, 2021
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ d2 app scripts init test
  2. Importing d2.config.js defaults
  3. No package.json found, creating one...
  4. Creating package scripts...
  5. Installing @dhis2/cli-app-scripts...
  6. warning @dhis2/cli-app-scripts > axios@0.20.0: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
  7.  warning @dhis2/cli-app-scripts > @dhis2/cli-helpers-engine > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
  8.  warning @dhis2/cli-app-scripts > @dhis2/cli-helpers-engine > request > har-validator@5.1.5: this library is no longer supported
  9.  warning @dhis2/cli-app-scripts > @dhis2/cli-helpers-engine > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
  10.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
  11.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
  12.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
  13.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > babel-jest > @jest/transform > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
  14.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
  15.  warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-bigint@0.4.0: acorn>=6.2 supports bigint
  16.  warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-export-ns-from@0.1.0: acorn>=7.2 supports export-ns-from
  17.  warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-import-meta@1.1.0: acorn>=7.2 supports import-meta
  18.  warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-numeric-separator@0.3.6: acorn>=7.4 supports numeric separators
  19.  warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-logical-assignment@0.1.4: acorn>=7.4 supports logical assignments
  20.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack-dev-server > sockjs > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
  21.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack-dev-server > webpack-log > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
  22.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
  23.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi@15.1.1: Switch to 'npm install joi'
  24.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > @svgr/webpack > @svgr/plugin-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
  25.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > @pmmmwh/react-refresh-webpack-plugin > native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
  26.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack-dev-server > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
  27.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  28.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  29.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > resolve-url-loader > rework > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  30.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > strip-comments > babel-plugin-transform-object-rest-spread > babel-runtime > core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
  31.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
  32.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
  33.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
  34.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
  35.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
  36.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > postcss-preset-env > postcss-color-functional-notation > postcss-values-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
  37.  warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > optimize-css-assets-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
  38.  warning "@dhis2/cli-app-scripts > styled-jsx@4.0.1" has unmet peer dependency "react@>= 16.8.0 || 17.x.x || 18.x.x".
  39.  Installing @dhis2/app-runtime...
  40. warning "@dhis2/cli-app-scripts > styled-jsx@4.0.1" has unmet peer dependency "react@>= 16.8.0 || 17.x.x || 18.x.x".
  41.  warning " > @dhis2/app-runtime@3.2.2" has unmet peer dependency "prop-types@^15.7.2".
  42.  warning " > @dhis2/app-runtime@3.2.2" has unmet peer dependency "react@^16.8.6".
  43. warning " > @dhis2/app-runtime@3.2.2" has unmet peer dependency "react-dom@^16.8.6".
  44.  warning "@dhis2/app-runtime > @dhis2/app-service-alerts@3.2.2" has unmet peer dependency "prop-types@^15.7.2".
  45. warning "@dhis2/app-runtime > @dhis2/app-service-alerts@3.2.2" has unmet peer dependency "react@^16.8.6".
  46. warning "@dhis2/app-runtime > @dhis2/app-service-alerts@3.2.2" has unmet peer dependency "react-dom@^16.8.6".
  47.  warning "@dhis2/app-runtime > @dhis2/app-service-config@3.2.2" has unmet peer dependency "prop-types@^15.7.2".
  48. warning "@dhis2/app-runtime > @dhis2/app-service-config@3.2.2" has unmet peer dependency "react@^16.8.6".
  49. warning "@dhis2/app-runtime > @dhis2/app-service-config@3.2.2" has unmet peer dependency "react-dom@^16.8.6".
  50.  warning "@dhis2/app-runtime > @dhis2/app-service-data@3.2.2" has unmet peer dependency "prop-types@^15.7.2".
  51. warning "@dhis2/app-runtime > @dhis2/app-service-data@3.2.2" has unmet peer dependency "react@^16.8".
  52.  warning "@dhis2/app-runtime > @dhis2/app-service-data@3.2.2" has unmet peer dependency "react-dom@^16.8".
  53.  warning "@dhis2/app-runtime > @dhis2/app-service-offline@3.2.2" has unmet peer dependency "prop-types@^15.7.2".
  54. warning "@dhis2/app-runtime > @dhis2/app-service-offline@3.2.2" has unmet peer dependency "react@^16.8.6".
  55. warning "@dhis2/app-runtime > @dhis2/app-service-offline@3.2.2" has unmet peer dependency "react-dom@^16.8.6".
  56.  Creating entrypoint src/App.js
  57. Updating .gitignore...
  58. Writing README...
  59.  
  60. SUCCESS!
  61. Run cd test && yarn start to launch your new DHIS2 application
  62. $ cd test && yarn test
  63. yarn run v1.22.5
  64. $ d2-app-scripts test
  65. Running tests...
  66.  FAIL  src/App.test.js
  67.   ● Console
  68.  
  69.     console.error
  70.       Error: Uncaught [Error: No QueryClient set, use QueryClientProvider to set one]
  71.           at reportException (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
  72.           at innerInvokeEventListeners (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:341:9)
  73.           at invokeEventListeners (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3)
  74.           at HTMLUnknownElementImpl._dispatch (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9)
  75.           at HTMLUnknownElementImpl.dispatchEvent (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17)
  76.           at HTMLUnknownElement.dispatchEvent (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34)
  77.           at Object.invokeGuardedCallbackDev (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:237:16)
  78.           at invokeGuardedCallback (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:292:31)
  79.           at beginWork$1 (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:23203:7)
  80.           at performUnitOfWork (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:22157:12)
  81.           at workLoopSync (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:22130:22)
  82.           at performSyncWorkOnRoot (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:21756:9)
  83.           at scheduleUpdateOnFiber (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:21188:7)
  84.           at updateContainer (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:24373:3)
  85.           at /home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:24758:7
  86.           at unbatchedUpdates (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:21903:12) Error: No QueryClient set, use QueryClientProvider to set one
  87.           at useQueryClient (/home/yassin/Projects/test/node_modules/react-query/lib/react/QueryClientProvider.js:36:11)
  88.           at useBaseQuery (/home/yassin/Projects/test/node_modules/react-query/lib/react/useBaseQuery.js:24:61)
  89.           at useQuery (/home/yassin/Projects/test/node_modules/react-query/lib/react/useQuery.js:14:41)
  90.           at useDataQuery (/home/yassin/Projects/test/node_modules/@dhis2/app-service-data/build/cjs/react/hooks/useDataQuery.js:91:32)
  91.           at DataQuery (/home/yassin/Projects/test/node_modules/@dhis2/app-service-data/build/cjs/react/components/DataQuery.js:18:53)
  92.           at renderWithHooks (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:14803:18)
  93.           at mountIndeterminateComponent (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:17482:13)
  94.           at beginWork (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:18596:16)
  95.           at HTMLUnknownElement.callCallback (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:188:14)
  96.           at HTMLUnknownElement.callTheUserObjectsOperation (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
  97.           at innerInvokeEventListeners (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25)
  98.           at invokeEventListeners (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3)
  99.           at HTMLUnknownElementImpl._dispatch (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9)
  100.           at HTMLUnknownElementImpl.dispatchEvent (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17)
  101.           at HTMLUnknownElement.dispatchEvent (/home/yassin/Projects/test/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34)
  102.           at Object.invokeGuardedCallbackDev (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:237:16)
  103.           at invokeGuardedCallback (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:292:31)
  104.           at beginWork$1 (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:23203:7)
  105.           at performUnitOfWork (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:22157:12)
  106.           at workLoopSync (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:22130:22)
  107.           at performSyncWorkOnRoot (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:21756:9)
  108.           at scheduleUpdateOnFiber (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:21188:7)
  109.           at updateContainer (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:24373:3)
  110.           at /home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:24758:7
  111.           at unbatchedUpdates (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:21903:12)
  112.           at legacyRenderSubtreeIntoContainer (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:24757:5)
  113.           at Object.render (/home/yassin/Projects/test/node_modules/react-dom/cjs/react-dom.development.js:24840:10)
  114.           at Object.<anonymous> (/home/yassin/Projects/test/src/App.test.js:7:14)
  115.           at Promise.then.completed (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-circus/build/utils.js:390:28)
  116.           at new Promise (<anonymous>)
  117.           at callAsyncCircusFn (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-circus/build/utils.js:315:10)
  118.           at _callCircusTest (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-circus/build/run.js:218:40)
  119.           at processTicksAndRejections (node:internal/process/task_queues:96:5)
  120.           at _runTest (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-circus/build/run.js:155:3)
  121.           at _runTestsForDescribeBlock (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-circus/build/run.js:66:9)
  122.           at run (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-circus/build/run.js:25:3)
  123.           at runAndTransformResultsToJestFormat (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:167:21)
  124.           at jestAdapter (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19)
  125.           at runTestInternal (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-runner/build/runTest.js:389:16)
  126.           at runTest (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-runner/build/runTest.js:475:34)
  127.           at TestRunner.runTests (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/jest-runner/build/index.js:111:12)
  128.           at TestScheduler.scheduleTests (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/@jest/core/build/TestScheduler.js:333:13)
  129.           at runJest (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/@jest/core/build/runJest.js:387:19)
  130.           at _run10000 (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/@jest/core/build/cli/index.js:408:7)
  131.           at runCLI (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/node_modules/@jest/core/build/cli/index.js:261:3)
  132.           at exitOnCatch.name (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/src/commands/test.js:56:28)
  133.           at exitOnCatch (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/src/lib/exitOnCatch.js:6:16)
  134.           at Object.handler (/home/yassin/Projects/test/node_modules/@dhis2/cli-app-scripts/src/commands/test.js:36:5)
  135.  
  136.       at VirtualConsole.<anonymous> (node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
  137.       at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
  138.       at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:341:9)
  139.       at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3)
  140.       at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9)
  141.       at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17)
  142.       at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34)
  143.       at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:237:16)
  144.       at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:292:31)
  145.       at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:23203:7)
  146.       at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:22157:12)
  147.       at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:22130:22)
  148.       at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:21756:9)
  149.  
  150.     console.error
  151.       The above error occurred in the <DataQuery> component:
  152.           in DataQuery (created by MyApp)
  153.           in div (created by MyApp)
  154.           in MyApp
  155.      
  156.       Consider adding an error boundary to your tree to customize error handling behavior.
  157.       Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
  158.  
  159.       at logCapturedError (node_modules/react-dom/cjs/react-dom.development.js:19527:21)
  160.       at logError (node_modules/react-dom/cjs/react-dom.development.js:19564:5)
  161.       at update.callback (node_modules/react-dom/cjs/react-dom.development.js:20708:5)
  162.       at callCallback (node_modules/react-dom/cjs/react-dom.development.js:12490:12)
  163.       at commitUpdateQueue (node_modules/react-dom/cjs/react-dom.development.js:12511:9)
  164.       at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:19883:11)
  165.       at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:22803:7)
  166.       at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:188:14)
  167.       at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
  168.       at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25)
  169.       at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3)
  170.       at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9)
  171.       at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17)
  172.       at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34)
  173.  
  174.   ● renders without crashing
  175.  
  176.     No QueryClient set, use QueryClientProvider to set one
  177.  
  178.        5 | it('renders without crashing', () => {
  179.        6 |     const div = document.createElement('div')
  180.     >  7 |     ReactDOM.render(<App />, div)
  181.          |              ^
  182.        8 |     ReactDOM.unmountComponentAtNode(div)
  183.        9 | })
  184.       10 |
  185.  
  186.       at useQueryClient (node_modules/react-query/lib/react/QueryClientProvider.js:36:11)
  187.       at useBaseQuery (node_modules/react-query/lib/react/useBaseQuery.js:24:61)
  188.       at useQuery (node_modules/react-query/lib/react/useQuery.js:14:41)
  189.       at useDataQuery (node_modules/@dhis2/app-service-data/build/cjs/react/hooks/useDataQuery.js:91:32)
  190.       at DataQuery (node_modules/@dhis2/app-service-data/build/cjs/react/components/DataQuery.js:18:53)
  191.       at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:14803:18)
  192.       at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:17482:13)
  193.       at beginWork (node_modules/react-dom/cjs/react-dom.development.js:18596:16)
  194.       at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:188:14)
  195.       at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
  196.       at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25)
  197.       at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3)
  198.       at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9)
  199.       at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17)
  200.       at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34)
  201.       at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:237:16)
  202.       at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:292:31)
  203.       at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:23203:7)
  204.       at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:22157:12)
  205.       at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:22130:22)
  206.       at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:21756:9)
  207.       at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:21188:7)
  208.       at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:24373:3)
  209.       at node_modules/react-dom/cjs/react-dom.development.js:24758:7
  210.       at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:21903:12)
  211.       at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:24757:5)
  212.       at Object.render (node_modules/react-dom/cjs/react-dom.development.js:24840:10)
  213.       at Object.<anonymous> (src/App.test.js:7:14)
  214.       at TestScheduler.scheduleTests (node_modules/@dhis2/cli-app-scripts/node_modules/@jest/core/build/TestScheduler.js:333:13)
  215.       at runJest (node_modules/@dhis2/cli-app-scripts/node_modules/@jest/core/build/runJest.js:387:19)
  216.       at _run10000 (node_modules/@dhis2/cli-app-scripts/node_modules/@jest/core/build/cli/index.js:408:7)
  217.       at runCLI (node_modules/@dhis2/cli-app-scripts/node_modules/@jest/core/build/cli/index.js:261:3)
  218.       at exitOnCatch.name (node_modules/@dhis2/cli-app-scripts/src/commands/test.js:56:28)
  219.       at exitOnCatch (node_modules/@dhis2/cli-app-scripts/src/lib/exitOnCatch.js:6:16)
  220.       at Object.handler (node_modules/@dhis2/cli-app-scripts/src/commands/test.js:36:5)
  221.  
  222. Test Suites: 1 failed, 1 total
  223. Tests:       1 failed, 1 total
  224. Snapshots:   0 total
  225. Time:        1.012 s
  226. Ran all test suites.
  227. [ERROR] Tests failed
  228. error Command failed with exit code 1.
  229. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
RAW Paste Data