argos-ci / jest-puppeteer

Run tests using Jest & Puppeteer 🎪✨
MIT License
3.53k stars 288 forks source link

Is there a way to run Jest-Puppeteer just for a select group of tests? #589

Open marcosthejew opened 3 weeks ago

marcosthejew commented 3 weeks ago

Hello! We do not require a browser for most tests, but the base Jest Test Runner suffices. There are other tests, that require a Browser instance or they will fail. Is there any way to explicitly state which files/tests should use Jest-Puppeteer and have the rest of them use the base Jest Test Runner? Thanks!

gregberge commented 3 weeks ago

Hello @marcosthejew, I think you can define multiple projects in Jest to handle that.