Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Question: is there a way to run a global setup function for a specific group? #52

Open
andy-isoc opened this issue Feb 20, 2023 · 0 comments

Comments

@andy-isoc
Copy link

I have tests in a group split between multiple files. I have some fixture setup I want to run once for the whole group. I tried adding a Jest global setup and checking the value of process.env.JEST_GROUP_NAME but the env var didn't exist. I'm guessing the env var gets set after the global setup. Is there a way to run a setup once per group?

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

No branches or pull requests

1 participant