-
Notifications
You must be signed in to change notification settings - Fork 217
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
Stub inside beforeAll #67
Comments
Not sure I understand, can you please elaborate? |
@DanielGluskin I think we do this now, right? |
please refer here, what are your thoughts on the setup (beforeAll)? I think it is a bit problematic, as
I think a solution like this will be cleaner -
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here we use sinon.stub in beforeAll. This way we provide only one stub for the whole suite, which cannot be restored later.
Should we always stub inside beforeEach or the arrange phase but not in beforeAll?
The text was updated successfully, but these errors were encountered: