Skip to content

chore(TS): fix TS type error #13374

chore(TS): fix TS type error

chore(TS): fix TS type error #13374

Triggered via pull request December 4, 2024 10:13
Status Failure
Total duration 5m 23s
Artifacts

coverage.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
tests/doc.test.ts > docs/components demos > πŸ“Έ renders ./docs/components/valueEnum-map.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `docs/components demos > πŸ“Έ renders ./docs/components/valueEnum-map.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div class="ant-result ant-result-error" > <div class="ant-result-icon" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </div> <div class="ant-result-title" > Something went wrong. </div> <div class="ant-result-extra" > ':scope +.ant-select-item-option-selected:not(.ant-select-item-option-disabled))+.ant-select-item-option-selected:not(.ant-select-item-option-disabled' is not a valid selector </div> </div> </div> </div> </body> </html>... ❯ tests/demo.tsx:131:40 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:127:77 ❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:70:9
tests/form/base.test.tsx > ProForm > πŸ“¦ SearchSelect onSearch support: tests/form/base.test.tsx#L1179
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1179:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1178:5
tests/form/base.test.tsx > ProForm > πŸ“¦ SearchSelect onSearch support valueEnum: tests/form/base.test.tsx#L1239
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1239:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1238:5
tests/form/base.test.tsx > ProForm > πŸ“¦ SearchSelect onSearch support valueEnum clear: tests/form/base.test.tsx#L1305
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1305:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1304:5
tests/form/base.test.tsx > ProForm > πŸ“¦ SearchSelect onSearch support valueEnum clear item filter: tests/form/base.test.tsx#L1374
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1374:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1373:5
tests/form/base.test.tsx > ProForm > πŸ“¦ SearchSelect support onClear: tests/form/base.test.tsx#L1461
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1461:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1460:5
tests/form/base.test.tsx > ProForm > πŸ“¦ SearchSelect support searchOnFocus: tests/form/base.test.tsx#L1563
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1563:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1562:5
tests/form/base.test.tsx > ProForm > πŸ“¦ SearchSelect support resetAfterSelect: tests/form/base.test.tsx#L1649
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1649:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1648:5
tests/form/base.test.tsx > ProForm > πŸ“¦ SearchSelect support fetchDataOnSearch: true: tests/form/base.test.tsx#L1776
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1776:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1775:5
tests/form/base.test.tsx > ProForm > πŸ“¦ LightFilter + SearchSelect support fetchDataOnSearch: true: tests/form/base.test.tsx#L1872
Error: Unable to fire a "mousedown" event - please provide a DOM element. ❯ createEvent node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:27:11 ❯ Function.createEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:106:38 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/events.js:110:68 ❯ Function.fireEvent.<computed> [as mouseDown] node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/fire-event.js:18:52 ❯ tests/form/base.test.tsx:1872:17 ❯ node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:64:24 ❯ act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2512:16 ❯ actWithWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10 ❯ Proxy.<anonymous> node_modules/.pnpm/@testing-library[email protected][email protected][email protected]/node_modules/@testing-library/react/dist/act-compat.js:63:25 ❯ tests/form/base.test.tsx:1871:5
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636