Closed j-lea closed 3 years ago
Thank you for the detailed feedback @j-lea!
This is actually affecting tests on master
as well. I suspect it's an unexpected side-effect of #296. The trick should be to make sure the Docker image running on CircleCI has the same dependencies as the one used when running tests on your machine. I'm looking into it :)
In the meantime, try reverting to v2.2.3?
@j-lea I've just released v2.3.1, which should hopefully solve the issue. You'll probably also need to use the right Docker image on CircleCI, see https://github.com/fwouts/react-screenshot-test/blob/master/.circleci/config.yml for reference. Let me know how you go!
Amazing! Upgrading to 2.3.1 seemed to sort it out :) Thank you so much @fwouts!
Perfect. Feel free to file more issues with bugs and/or feedback as you use the library more. I'm especially curious to hear whether the limitation of only having server-side rendering becomes an issue for you (I'm considering building a more powerful version that does support client-side, but it's quite a bit more complex so I'm not sure yet whether I'd be offering it for free).
Hi! I've just started using react-screenshot-test and was so impressed by how easy it was to get running and how perfect it is for my use case, thanks! However I've hit a bit of an issue with screenshots mismatching between the ones I generate locally and those taken in circleCI.
I am running both in Docker, but the screenshots taken locally are missing a border around the component, whilst the ones in CI do have the border. Giving me the following diff for exactly the same code:
One thing to note: the border is made using the
boxShadow
in the second div, rather than a normal border on the first div.This is my component:
This is the test (copied from the example):
And this is my jest config in package.json:
And this is my circleCI.yaml
Let me know if you need any more info!