v5 vs chai-as-promised #1563
-
Hello, Thanks for working on this great library. This is not an issue, but rather a request for an advice. In the Appium project we have a large tests codebase where we use both chai and chai-as-promised modules to simplify promises validation. The latter is obviously not compatible with v5 of chai, so we would like to ask your advice there. Do you have an official tutorial/approach for chai v5 to test promises like chai-as-promised could, so the latter may be eventually dropped, and we could only rely on the "raw" chai implementation? Or maybe there is some chai technique/plugin we don't know about, which could help us to resolve the above compatibility issue? Or should we report a feature request to chai-as-promised and postpone the chai bump until it is resolved? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I would use async/await to unbox promises and test their underlying values or side effects. |
Beta Was this translation helpful? Give feedback.
I would use async/await to unbox promises and test their underlying values or side effects.