Components: upgrade Ariakit to latest #102453
Annotations
10 errors and 2 warnings
Running the tests:
packages/components/src/tabs/test/index.tsx#L24
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(TabList)", "
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tabs", "
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at Scop
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L379
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 1
Received number of calls: 0
at Object.toHaveBeenCalledTimes (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:379:27)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10)
at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70: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)
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L24
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(TabList)", "
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tabs", "
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at Scop
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L414
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 1
Received number of calls: 0
at Object.toHaveBeenCalledTimes (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:414:27)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10)
at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70: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)
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L24
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(TabList)", "
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tabs", "
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at Scop
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L514
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 1
Received number of calls: 0
at Object.toHaveBeenCalledTimes (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:514:27)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10)
at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70: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)
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L24
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(TabList)", "
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tabs", "
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at Scop
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L594
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 1
Received number of calls: 0
at Object.toHaveBeenCalledTimes (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:594:27)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10)
at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70: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)
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L24
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(TabList)", "
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tabs", "
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at Scop
|
Running the tests:
packages/components/src/tabs/test/index.tsx#L24
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(TabList)", "
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tabs", "
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tablist.tsx:24:24)
at selectOnMove (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/index.tsx:28:2)
at tabs (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/test/index.tsx:63:2)"],["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", "Tab2", "
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/R2YVMKBR.cjs:19:49
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tabs/tab.tsx:19:20)
at div
at /home/runner/work/gutenberg/gutenberg/node_modules/@emotion/react/dist/emotion-element-c24e4fdd.cjs.dev.js:43:23
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ScopedContextProvider
at ContextProvider
at ContextProvider
at ContextProvider
at Scop
|
Setup Node.js and install dependencies
Both node-version and node-version-file inputs are specified, only node-version will be used
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading