Skip to content
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

Run beforeEach/afterEach in the correct order #44

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

iainjreid
Copy link
Contributor

@iainjreid iainjreid commented Jun 24, 2022

This PR fixes issue #43, it selectively runs the "before" and the "after" hooks separately, before and after the test itself is executed. We've had this running for a while in a medium sized codebase, and it's worked well for us so far!

Copy link
Owner

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Sorry if I forgot to review this 😅

I'll release later today.

@nicolo-ribaudo nicolo-ribaudo changed the title Delay "after" hooks until the test has executed (#43) Run beforeEach/afterEach in the correct order Jul 1, 2022
@nicolo-ribaudo nicolo-ribaudo merged commit 742ee79 into nicolo-ribaudo:main Jul 1, 2022
@iainjreid
Copy link
Contributor Author

No problem, thank you for reviewing! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants