Skip to content

Difference between test.before and top level code? #3150

Answered by novemberborn
enricoschaaf asked this question in Q&A
Discussion options

You must be logged in to vote

Not really, but you may get nicer error output if the code throws, plus if you're not using ESM you can do async stuff in the before hook.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by enricoschaaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants