-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add something like setUp and tearDown #43
Comments
I've been working around this by creating items that require side effects inn main, and passing them in, but that is not very sustainable - it goes messy quite quickly. |
@mostalive I see. I'll try to find some time and implement the design discussed in #44. Would that be nicer for your usage? |
I think it would, although the fact that I have that much state is also saying something about my tests... |
Yeah, perhaps. Do you have any example that you can share? |
(beforeEach is almost done now, and I am finally getting around to updating this, so this is more or less a note to self ;-)), https://github.com/mostalive/purescript-firebase/blob/master/test/WriteGenericSpec.purs
is duplicated in multipe it's the last one isnt' so that smells of a separate describe block. |
Add something like setUp and tearDown, something like hooks in hspec:
https://hspec.github.io/writing-specs.html
The text was updated successfully, but these errors were encountered: