WIP: RSVP Response autocomplete #117
Annotations
3 errors and 1 warning
Run Jest Tests:
test/unit/js/src/components/RsvpResponse.test.js#L73
TypeError: Cannot read properties of undefined (reading 'is_admin')
at is_admin (/home/runner/work/gatherpress/gatherpress/src/components/RsvpResponse.js:73:34)
at renderWithHooks (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (/home/runner/work/gatherpress/gatherpress/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (/home/runner/work/gatherpress/gatherpress/node_modules/react/cjs/react.development.js:2667:24)
at act (/home/runner/work/gatherpress/gatherpress/node_modules/react/cjs/react.development.js:2582:11)
at /home/runner/work/gatherpress/gatherpress/node_modules/@testing-library/react/dist/act-compat.js:46:25
at renderRoot (/home/runner/work/gatherpress/gatherpress/node_modules/@testing-library/react/dist/pure.js:161:26)
at render (/home/runner/work/gatherpress/gatherpress/node_modules/@testing-library/react/dist/pure.js:247:10)
at Object.<anonymous> (/home/runner/work/gatherpress/gatherpress/test/unit/js/src/components/RsvpResponse.test.js:61:31)
at Promise.then.completed (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gatherpress/gatherpress/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/gatherpress/gatherpress/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/gatherpress/gatherpress/node_modules/jest-runner/build/testWorker.js:106:12)
|
Run Jest Tests:
test/unit/js/src/components/RsvpResponse.test.js#L56
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'is_admin')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'is_admin')]]],["The above error occurred in the <RsvpResponse> component:·
at RsvpResponse (/home/runner/work/gatherpress/gatherpress/src/components/RsvpResponse.js:56:46)·
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."]
console.error() should not be used unless explicitly expected
See https://www.npmjs.com/package/@wordpress/jest-console for details.
at Object.assertExpectedCalls (/home/runner/work/gatherpress/gatherpress/node_modules/@wordpress/jest-console/build/@wordpress/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:281:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gatherpress/gatherpress/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gatherpress/gatherpress/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/gatherpress/gatherpress/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/gatherpress/gatherpress/node_modules/jest-runner/build/testWorker.js:106:12)
|
Run Jest Tests
Process completed with exit code 1.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The logs for this run have expired and are no longer available.
Loading