node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "[object Object]".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Description
Hi all, I have a question about this custom react renderer example: examples/react-renderer/src/Autocomplete.tsx.
In out jest unit tests, we got the below error even if the tests passed.
Reproduction
Even if it's just
You will get the below error:
One way to fix this is to add a
setTiemout
but this is not ideal.
Could you please advise what is the best way to test?
Environment