You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to necromance, but having run into this exact same issue today, I think the caveat about needing to be chai.used last should be made way more prominent in the readme. As it is, it's kind of hidden far down, and easy to miss.
Love this package! I use it on pretty much all of my projects.
When using both chai-fs and chai-as-promised, promises start returning before being handled, kind of like when you run an async test without
done
.I'm not sure which side the issues sits with so have raised it on both
Example test:
Results in promises being rejected but not handled by mocha:
Swapping the order and loading
chai-fs
first:Results in the normal promise handling behaviour:
The text was updated successfully, but these errors were encountered: