You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One pattern I've been following in other projects recently to handle steps that you'd normally put into an `afterEach` is to have your setup function take a function. I like to rename the function `withXXXX` to indicate that it doesn't return the controllers (or test data) itself. For instance you could have:
The reason
withControllers
takes a function is because that would now represent the test. Here's how you'd update an existing test for instance:I realize you've spent a lot of time on these tests already, so this isn't a request for this PR, but could give you ideas for a future PR.
Originally posted by @mcmire in #903 (comment)
The text was updated successfully, but these errors were encountered: