react/scripts
Sebastian Silbermann 4f8ffec453
Rejct toWarnDev if given callback throws (#26003)
## Summary

Should unblock https://github.com/facebook/react/pull/25970
If the callback for `toWarnDev` was `async` and threw, we didn't
ultimately reject the await Promise from the matcher. This resulted in
tests failing even though the failure was expected due to a test gate.

## How did you test this change?

- [x] tested in https://github.com/facebook/react/pull/25970 with `yarn
test --r=stable --env=development
packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js --watch`
- [x] `yarn test`
- [x] CI
2023-01-15 18:57:59 +01:00
..
babel Transform updates to support Flow this annotation syntax (#25918) 2023-01-05 15:41:49 -05:00
bench Refactor: Reuse variable "remoteRepoDir" (#25740) 2023-01-09 22:59:38 -05:00
circleci Add snapshot testing on e2e test failure (#24672) 2022-06-06 10:36:58 -07:00
devtools [DevTools][BE] Read username using gh in release script (#25270) 2022-09-15 18:12:46 -07:00
error-codes [flow] enable exact_empty_objects (#25973) 2023-01-09 17:00:36 -05:00
eslint [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
eslint-rules Remove Reconciler fork (1/2) (#25774) 2022-12-01 23:06:25 -05:00
flow Upgrade to Flow 0.196.3 (#25974) 2023-01-09 17:52:42 -05:00
git Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
jest Rejct toWarnDev if given callback throws (#26003) 2023-01-15 18:57:59 +01:00
perf-counters [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
prettier [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
print-warnings [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
release [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
rollup Remove findDOMNode www shim (#25998) 2023-01-13 16:27:03 -05:00
shared Add Bun streaming server renderer (#25597) 2022-11-17 13:15:56 -08:00
tasks [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
yarn chore: upgrade to jest 24 (#15778) 2019-10-03 22:44:18 +05:30
authors AUTHORS 2013-09-09 23:42:54 -07:00