Skip to content

Feature : Refactor Autocomplete using DropdownMenu #117139

Feature : Refactor Autocomplete using DropdownMenu

Feature : Refactor Autocomplete using DropdownMenu #117139

Triggered via pull request October 17, 2024 09:09
Status Failure
Total duration 9m 9s
Artifacts 1

unit-test.yml

on: pull_request
Compute previous WordPress version
2s
Compute previous WordPress version
Build JavaScript assets for PHP unit tests
4m 48s
Build JavaScript assets for PHP unit tests
PHP coding standards
39s
PHP coding standards
Matrix: unit-js-date
Matrix: unit-js
Matrix: test-php
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
JavaScript (Node.js 20) 1/4: packages/components/src/autocomplete/test/index.tsx#L95
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/autocomplete/test/index.tsx:95:23)
JavaScript (Node.js 20) 1/4: packages/components/src/autocomplete/test/index.tsx#L63
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: ["Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s%s", "· Check the render method of `AutocompleterUI`.", " at UnconnectedDropdownMenu (/home/runner/work/gutenberg/gutenberg/packages/components/src/dropdown-menu/index.tsx:63:22) at div at filterValue (/home/runner/work/gutenberg/gutenberg/packages/components/src/autocomplete/autocompleter-ui.tsx:85:3) at div at Container (/home/runner/work/gutenberg/gutenberg/packages/components/src/autocomplete/test/index.tsx:65:30)"] 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:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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)
JavaScript (Node.js 20) 1/4
Process completed with exit code 1.
JavaScript (Node.js 22) 1/4: packages/components/src/autocomplete/test/index.tsx#L95
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/autocomplete/test/index.tsx:95:23)
JavaScript (Node.js 22) 1/4: packages/components/src/autocomplete/test/index.tsx#L63
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: ["Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s%s", "· Check the render method of `AutocompleterUI`.", " at UnconnectedDropdownMenu (/home/runner/work/gutenberg/gutenberg/packages/components/src/dropdown-menu/index.tsx:63:22) at div at filterValue (/home/runner/work/gutenberg/gutenberg/packages/components/src/autocomplete/autocompleter-ui.tsx:85:3) at div at Container (/home/runner/work/gutenberg/gutenberg/packages/components/src/autocomplete/test/index.tsx:65:30)"] 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:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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)
JavaScript (Node.js 22) 1/4
Process completed with exit code 1.
PHP 7.2 (WP previous major version) on ubuntu-latest
Process completed with exit code 1.
PHP 7.3 on ubuntu-latest
The job was canceled because "_7_2_previous_major_versi" failed.
PHP 7.3 on ubuntu-latest
The operation was canceled.
PHP
Process completed with exit code 1.
JavaScript Date Tests (Node.js 22)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript Date Tests (Node.js 20)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used

Artifacts

Produced during runtime
Name Size
build-assets
9.84 MB