Prior99 / jest-screenshot

A jest extension to deal with screenshots and all sorts of images.
MIT License
71 stars 21 forks source link

Run tests one at a time #48

Closed bobisum closed 2 years ago

bobisum commented 3 years ago

When having multiple test files in a directory is there a way to run them one at a time? Since my tests involve quite a lot of Puppeteer intervention and I have 7 test suites with more than a dozen tests cases in each of them I get errors, that do not show if I run all each test individually.

Prior99 commented 3 years ago

Yes. https://jestjs.io/docs/en/cli#--runinband

bobisum commented 3 years ago

Thanks for the lightning answer! I did try that and I was about to say "it didn't work", but I tried it again before I wrote to you and it worked... not sure why I had issues the first time, but I would bet I did something wrong. Thanks and have a great weekend!