-
Notifications
You must be signed in to change notification settings - Fork 108
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
Issues with plugins on multiple test files #244
Comments
9 tasks
This is described in the setup instructions and demonstrated in the code: Use a separate file for setting up chai and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to get
chai-as-promised
working withchai-bignumber
, and run into the same issue described in #70: if I callchai.use(require('chai-as-promised'))
on both files, the test suite breaks, but everything runs fine if its only called on one of them. Note that I am callinguse
withchai-as-promised
afterchai-bignumber
.I understand
chai-as-promised
modifies previously loaded plugins to make them work with promises, and should only be loaded once, but what would be the proper way of loading all plugins so that this kind of interaction between testfiles doesn't happen?Thanks
The text was updated successfully, but these errors were encountered: