Dependency Updates and ESM Migration #123408
Annotations
10 errors and 1 warning
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"],["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_mod
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"]
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/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:281:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:36
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"]
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/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:281:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:36
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"]
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/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:281:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:36
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"]
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/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:281:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:36
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"],["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_mod
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"],["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_mod
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"],["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_mod
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L33
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnconnectedBaseControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/base-control/index.tsx:42:22)
at UnforwardedInputControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/index.tsx:60:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedNumberControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/number-control/index.tsx:59:38)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"],["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(InputField)", "
at disabled (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-field.tsx:33:3)
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/context/context-system-provider.js:94:39)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at as (/home/runner/work/gutenberg/gutenberg/packages/components/src/view/component.tsx:19:4)
at UnconnectedFlex (/home/runner/work/gutenberg/gutenberg/packages/components/src/flex/flex/component.tsx:20:55)
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at InputBase (/home/runner/work/gutenberg/gutenberg/packages/components/src/input-control/input-base.tsx:81:19)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
at div
at /home/runner/work/gutenberg/gutenberg/node_mod
|
Running the tests:
packages/components/src/unit-control/test/index.tsx#L61
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: An update to %s inside a test was not wrapped in act(...).·
When testing, code that causes React state updates should be wrapped into act(...):·
act(() => {
/* fire events that update state */
});
/* assert on the output */·
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s", "ForwardRef(UnforwardedUnitControl)", "
at UnforwardedUnitControl (/home/runner/work/gutenberg/gutenberg/packages/components/src/unit-control/index.tsx:61:38)
at UnitControl"]
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/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:281:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:254:5)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
|
Setup Node.js and install dependencies
Both node-version and node-version-file inputs are specified, only node-version will be used
|
Loading