beforeEach
across all tests?
#2795
Unanswered
SevenOutman
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Could you elaborate on your use cases? There is no explicit mechanism for this. As you've probably realised, each test file is executed in a child process (and with the upcoming AVA 4, in a worker thread). Perhaps you can use the We do have an (experimental) way for test files to communicate with each other, which helps with certain use cases. It would be great to expand this so you can load some code into the AVA lifecycle outside of a test file. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I wonder how I can setup some common
beforeEach
andafterEach
hooks for all my test files in one place?Beta Was this translation helpful? Give feedback.
All reactions