argos-ci / jest-puppeteer

Run tests using Jest & Puppeteer 🎪✨
MIT License
3.54k stars 289 forks source link

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

Open marcosthejew opened 2 months ago

marcosthejew commented 2 months 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 2 months ago

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