eugene-manuilov / jest-runner-groups

A custom runner that allows to tag test files and run groups of tests with Jest.
MIT License
128 stars 14 forks source link

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

Open andy-isoc opened 1 year ago

andy-isoc commented 1 year ago

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?