ant-design/components/modal/__tests__
Peter Gassner 25ea3a7202
fix: Allow users to handle promise rejections in ActionButton's onOk callback (#40018)
* fix: Allow users to handle promise rejections in onOk callback

Components that rely on ActionButton swallow rejected promises. This makes it impossible for userland code to handle them.

* polish: Fix linting problems

* polish: Return rejected promise instead of throwing

* refact: Remove test for unhandled promise rejection

This test breaks when run in parallel by Jest. At the moment we have no way of changing the way Jest works and it prohibits us from testing for "unhandledRejection" events.

See: https://github.com/ant-design/ant-design/pull/40018#issuecomment-1373590259

* test: hack for rejection

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2023-01-08 00:27:33 +08:00
..
__snapshots__ fix: wireframe style for popconfirm (#39313) 2022-12-06 23:14:30 +08:00
confirm.test.tsx fix: Allow users to handle promise rejections in ActionButton's onOk callback (#40018) 2023-01-08 00:27:33 +08:00
demo-extend.test.ts
demo.test.ts
hook.test.tsx chore: fix ci (#39811) 2022-12-26 15:48:50 +08:00
image.test.ts
Modal.test.tsx test: refactor test case demo CC => FC (#40070) 2023-01-07 21:15:59 +08:00
type.test.tsx