chore(TS): fix TS type error #13374
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
|