Skip to content

Iconography - Configurable Icon Sets #60

Iconography - Configurable Icon Sets

Iconography - Configurable Icon Sets #60

Triggered via pull request June 5, 2024 16:36
Status Failure
Total duration 1m 49s
Billable time 8m
Artifacts

tests-js.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

17 errors
Test JS (node 22)
iconography#test: command (/home/runner/work/wp-packages/wp-packages/packages/iconography) /opt/hostedtoolcache/node/22.2.0/x64/bin/npm run test exited (1)
Test JS (node 22): packages/iconography/src/tests/utils.test.ts#L110
Error: expect(received).toStrictEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -1,9 +1,9 @@ Array [ Object { "className": "test-class", - "edit": [Function mockConstructor], + "edit": [Function edit], "interactive": false, "name": "test", "options": Array [ Object { "name": "Test", at Object.toStrictEqual (/home/runner/work/wp-packages/wp-packages/packages/iconography/src/tests/utils.test.ts:110:29) at Promise.then.completed (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:444:34)
Test JS (node 22): packages/iconography/src/tests/utils.test.ts#L145
Error: expect(received).toStrictEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -1,9 +1,9 @@ Array [ Object { "className": "test-class", - "edit": [Function mockConstructor], + "edit": [Function edit], "interactive": false, "name": "test", "options": Array [ Object { "name": "Test", at Object.toStrictEqual (/home/runner/work/wp-packages/wp-packages/packages/iconography/src/tests/utils.test.ts:145:20) at Promise.then.completed (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:444:34)
Test JS (node 22): packages/iconography/src/tests/utils.test.ts#L309
TypeError: renderCallback is not a function at TestComponent (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:309:27) at renderWithHooks (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:15486:18) at mountIndeterminateComponent (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:20103:13) at beginWork (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:21626:16) at beginWork$1 (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:27465:14) at performUnitOfWork (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:26599:12) at workLoopSync (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:26505:5) at renderRootSync (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:26473:7) at recoverFromConcurrentError (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:25889:20) at performConcurrentWorkOnRoot (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:25789:22) at flushActQueue (/home/runner/work/wp-packages/wp-packages/node_modules/react/cjs/react.development.js:2667:24) at act (/home/runner/work/wp-packages/wp-packages/node_modules/react/cjs/react.development.js:2582:11) at /home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/act-compat.js:47:25 at renderRoot (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:180:26) at render (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:271:10) at renderHook (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:318:7) at Object.<anonymous> (/home/runner/work/wp-packages/wp-packages/packages/iconography/src/tests/utils.test.ts:189:32) at Promise.then.completed (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:444:34)
Test JS (node 22): packages/iconography/src/tests/utils.test.ts#L307
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: renderCallback is not a function]]],[[Error: Uncaught [TypeError: renderCallback is not a function]]],["The above error occurred in the <TestComponent> component:· at TestComponent (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:307:5)· 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/wp-packages/wp-packages/packages/iconography/node_modules/@wordpress/jest-console/build/@wordpress/jest-console/src/index.js:32:40) at Promise.then.completed (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:231:10) at _callCircusHook (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:281:40) at _runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:254:5) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:444:34)
Test JS (node 22)
Process completed with exit code 1.
Test JS (node 21)
The job was canceled because "_22" failed.
Test JS (node 21)
The operation was canceled.
Test JS (node 20)
The job was canceled because "_22" failed.
Test JS (node 20)
iconography#test: command (/home/runner/work/wp-packages/wp-packages/packages/iconography) /opt/hostedtoolcache/node/20.14.0/x64/bin/npm run test exited (1)
Test JS (node 20): packages/iconography/src/tests/utils.test.ts#L110
Error: expect(received).toStrictEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -1,9 +1,9 @@ Array [ Object { "className": "test-class", - "edit": [Function mockConstructor], + "edit": [Function edit], "interactive": false, "name": "test", "options": Array [ Object { "name": "Test", at Object.toStrictEqual (/home/runner/work/wp-packages/wp-packages/packages/iconography/src/tests/utils.test.ts:110:29) at Promise.then.completed (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:444:34)
Test JS (node 20): packages/iconography/src/tests/utils.test.ts#L145
Error: expect(received).toStrictEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -1,9 +1,9 @@ Array [ Object { "className": "test-class", - "edit": [Function mockConstructor], + "edit": [Function edit], "interactive": false, "name": "test", "options": Array [ Object { "name": "Test", at Object.toStrictEqual (/home/runner/work/wp-packages/wp-packages/packages/iconography/src/tests/utils.test.ts:145:20) at Promise.then.completed (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:444:34)
Test JS (node 20): packages/iconography/src/tests/utils.test.ts#L309
TypeError: renderCallback is not a function at TestComponent (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:309:27) at renderWithHooks (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:15486:18) at mountIndeterminateComponent (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:20103:13) at beginWork (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:21626:16) at beginWork$1 (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:27465:14) at performUnitOfWork (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:26599:12) at workLoopSync (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:26505:5) at renderRootSync (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:26473:7) at recoverFromConcurrentError (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:25889:20) at performConcurrentWorkOnRoot (/home/runner/work/wp-packages/wp-packages/node_modules/react-dom/cjs/react-dom.development.js:25789:22) at flushActQueue (/home/runner/work/wp-packages/wp-packages/node_modules/react/cjs/react.development.js:2667:24) at act (/home/runner/work/wp-packages/wp-packages/node_modules/react/cjs/react.development.js:2582:11) at /home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/act-compat.js:47:25 at renderRoot (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:180:26) at render (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:271:10) at renderHook (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:318:7) at Object.<anonymous> (/home/runner/work/wp-packages/wp-packages/packages/iconography/src/tests/utils.test.ts:189:32) at Promise.then.completed (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:444:34)
Test JS (node 20): packages/iconography/src/tests/utils.test.ts#L307
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: renderCallback is not a function]]],[[Error: Uncaught [TypeError: renderCallback is not a function]]],["The above error occurred in the <TestComponent> component:· at TestComponent (/home/runner/work/wp-packages/wp-packages/node_modules/@testing-library/react/dist/pure.js:307:5)· 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/wp-packages/wp-packages/packages/iconography/node_modules/@wordpress/jest-console/build/@wordpress/jest-console/src/index.js:32:40) at Promise.then.completed (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/utils.js:231:10) at _callCircusHook (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:281:40) at _runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:254:5) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/wp-packages/wp-packages/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/wp-packages/wp-packages/node_modules/jest-runner/build/runTest.js:444:34)
Test JS (node 20)
The operation was canceled.
Test JS (node 18)
The job was canceled because "_22" failed.
Test JS (node 18)
The operation was canceled.