-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chai-fs impacts promise handling when loaded after chai-as-promised #38
Comments
Hello @deployable, thanks for your issue I believe that this is happening because It is documented at
Basically the solution is to (as you have already pointed) load |
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: