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?
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?