Bump the wordpress-packages group with 29 updates #1621
build-test-measure.yml
on: pull_request
Pre run
6s
Matrix: build-zip
Lint: CSS
57s
Lint: JS
57s
Lint: PHP
0s
Static Analysis: PHP
0s
Unit test: JS
55s
Matrix: E2E test: JS
Matrix: feature-test-php
Matrix: unit-test-php
Comment on PR with links to plugin ZIPs
0s
Annotations
12 errors
Unit test: JS:
assets/src/block-validation/hooks/test/use-validation-error-state-updates.js#L1622
TypeError: Cannot read properties of null (reading 'useState')
at useState (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/element/node_modules/react/cjs/react.development.js:1622:21)
at useValidationErrorStateUpdates (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/use-validation-error-state-updates.js:75:66)
at ComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:38:33)
at renderWithHooks (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (/home/runner/work/amp-wp/amp-wp/node_modules/react/cjs/react.development.js:2667:24)
at act (/home/runner/work/amp-wp/amp-wp/node_modules/react/cjs/react.development.js:2582:11)
at /home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/act-compat.js:46:25
at renderRoot (/home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/pure.js:180:26)
at render (/home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/pure.js:266:10)
at renderComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:44:9)
at Object.renderComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:70:3)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/testWorker.js:106:12)
|
Unit test: JS:
assets/src/block-validation/hooks/test/use-validation-error-state-updates.js#L38
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],[[Error: Uncaught [TypeError: Cannot read properties of null (reading 'useState')]]],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],[[Error: Uncaught [TypeError: Cannot read properties of null (reading 'useState')]]],["The above error occurred in the <ComponentContainingHook> component:·
at ComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:38:33)·
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/amp-wp/amp-wp/node_modules/@wordpress/jest-console/build/@wordpress/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:281:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/
|
Unit test: JS:
assets/src/block-validation/hooks/test/use-validation-error-state-updates.js#L1622
TypeError: Cannot read properties of null (reading 'useState')
at useState (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/element/node_modules/react/cjs/react.development.js:1622:21)
at useValidationErrorStateUpdates (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/use-validation-error-state-updates.js:75:66)
at ComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:38:33)
at renderWithHooks (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (/home/runner/work/amp-wp/amp-wp/node_modules/react/cjs/react.development.js:2667:24)
at act (/home/runner/work/amp-wp/amp-wp/node_modules/react/cjs/react.development.js:2582:11)
at /home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/act-compat.js:46:25
at renderRoot (/home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/pure.js:180:26)
at render (/home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/pure.js:266:10)
at renderComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:44:9)
at Object.renderComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:88:3)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/testWorker.js:106:12)
|
Unit test: JS:
assets/src/block-validation/hooks/test/use-validation-error-state-updates.js#L38
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],[[Error: Uncaught [TypeError: Cannot read properties of null (reading 'useState')]]],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],[[Error: Uncaught [TypeError: Cannot read properties of null (reading 'useState')]]],["The above error occurred in the <ComponentContainingHook> component:·
at ComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:38:33)·
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/amp-wp/amp-wp/node_modules/@wordpress/jest-console/build/@wordpress/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:281:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/
|
Unit test: JS:
assets/src/block-validation/hooks/test/use-validation-error-state-updates.js#L1622
TypeError: Cannot read properties of null (reading 'useState')
at useState (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/element/node_modules/react/cjs/react.development.js:1622:21)
at useValidationErrorStateUpdates (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/use-validation-error-state-updates.js:75:66)
at ComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:38:33)
at renderWithHooks (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (/home/runner/work/amp-wp/amp-wp/node_modules/react/cjs/react.development.js:2667:24)
at act (/home/runner/work/amp-wp/amp-wp/node_modules/react/cjs/react.development.js:2582:11)
at /home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/act-compat.js:46:25
at renderRoot (/home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/pure.js:180:26)
at render (/home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/pure.js:266:10)
at renderComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:44:9)
at Object.renderComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:111:3)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/testWorker.js:106:12)
|
Unit test: JS:
assets/src/block-validation/hooks/test/use-validation-error-state-updates.js#L38
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],[[Error: Uncaught [TypeError: Cannot read properties of null (reading 'useState')]]],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],[[Error: Uncaught [TypeError: Cannot read properties of null (reading 'useState')]]],["The above error occurred in the <ComponentContainingHook> component:·
at ComponentContainingHook (/home/runner/work/amp-wp/amp-wp/assets/src/block-validation/hooks/test/use-validation-error-state-updates.js:38:33)·
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/amp-wp/amp-wp/node_modules/@wordpress/jest-console/build/@wordpress/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:281:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/
|
Unit test: JS:
assets/src/onboarding-wizard/components/nav/test/index.js#L1622
TypeError: Cannot read properties of null (reading 'useState')
at useState (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/element/node_modules/react/cjs/react.development.js:1622:21)
at OptionsContextProvider (/home/runner/work/amp-wp/amp-wp/assets/src/components/options-context-provider/__mocks__/index.js:25:43)
at renderWithHooks (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:6351:18)
at mountIndeterminateComponent (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9855:13)
at beginWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:11312:16)
at performUnitOfWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15811:12)
at workLoopSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15745:5)
at renderRootSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15717:7)
at performSyncWorkOnRoot (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15422:20)
at flushSyncCallbacks (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2597:22)
at flushSyncCallbacksOnlyInLegacyMode (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2576:5)
at scheduleUpdateOnFiber (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:14910:7)
at updateContainer (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:17770:5)
at create (/home/runner/work/amp-wp/amp-wp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:18510:3)
at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/assets/src/onboarding-wizard/components/nav/test/index.js:68:25)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/testWorker.js:106:12)
|
Unit test: JS:
assets/src/onboarding-wizard/components/nav/test/index.js#L24
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["The above error occurred in the <OptionsContextProvider> component:·
at children (/home/runner/work/amp-wp/amp-wp/assets/src/components/options-context-provider/__mocks__/index.js:24:42)
at children (/home/runner/work/amp-wp/amp-wp/assets/src/onboarding-wizard/components/nav/test/index.js:40:2)·
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/amp-wp/amp-wp/node_modules/@wordpress/jest-console/build/@wordpress/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:281:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/testWorker.js:106:12)
|
Unit test: JS:
assets/src/onboarding-wizard/components/nav/test/index.js#L1622
TypeError: Cannot read properties of null (reading 'useState')
at useState (/home/runner/work/amp-wp/amp-wp/node_modules/@wordpress/element/node_modules/react/cjs/react.development.js:1622:21)
at OptionsContextProvider (/home/runner/work/amp-wp/amp-wp/assets/src/components/options-context-provider/__mocks__/index.js:25:43)
at renderWithHooks (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (/home/runner/work/amp-wp/amp-wp/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (/home/runner/work/amp-wp/amp-wp/node_modules/react/cjs/react.development.js:2667:24)
at act (/home/runner/work/amp-wp/amp-wp/node_modules/react/cjs/react.development.js:2521:11)
at /home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/act-compat.js:46:25
at renderRoot (/home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/pure.js:180:26)
at render (/home/runner/work/amp-wp/amp-wp/node_modules/@testing-library/react/dist/pure.js:266:10)
at Object.<anonymous> (/home/runner/work/amp-wp/amp-wp/assets/src/onboarding-wizard/components/nav/test/index.js:80:31)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/testWorker.js:106:12)
|
Unit test: JS:
assets/src/onboarding-wizard/components/nav/test/index.js#L24
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],[[Error: Uncaught [TypeError: Cannot read properties of null (reading 'useState')]]],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],["Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."],[[Error: Uncaught [TypeError: Cannot read properties of null (reading 'useState')]]],["The above error occurred in the <OptionsContextProvider> component:·
at children (/home/runner/work/amp-wp/amp-wp/assets/src/components/options-context-provider/__mocks__/index.js:24:42)
at children (/home/runner/work/amp-wp/amp-wp/assets/src/onboarding-wizard/components/nav/test/index.js:40:2)·
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/amp-wp/amp-wp/node_modules/@wordpress/jest-console/build/@wordpress/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:281:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/amp-wp/amp-wp/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/amp-wp/amp-wp/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/amp-wp/amp-wp/node
|
E2E test: JS (1, 2)
Process completed with exit code 1.
|
E2E test: JS (2, 2)
Process completed with exit code 1.
|