-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshot failure not failing on CI #222
Comments
Did you |
Yes. It is awaited and fails 💯 of the time when running in my container locally and even when running On CI it is simply as thought the fact that there is a diff isn't treated as a failure for some reason since the file in the |
That's weird. All it does is just throw an error. Do you have a link to the CI job that passes? This may be a question the Vitest team can help. |
Which version of Vite and Vitest are you using? I notice the sourcemap is also not correct. I suspect there are some versioning issue. See if you have multiple versions of Vite and Vitest installed also. |
Ya that has been a real pain and I haven't nailed down exactly where the problem is as sourcemaps work correctly for our app in prod. Something is configured slightly differently for vitest and haven't nailed it down yet. |
@joekrump are you still facing this issue? |
Yes. I have not been able to put more time into investigating the root cause so as of right now I've been running all the tests locally to keep things up to date and catch errors. It's not practical for my team but it's been working okay as a stop-gap solution for now |
I have a screenshot failure that I get when I run my tests in my docker container on my local machine and it's a legitimate failure; Something in the UI changed. However, when the test is run on CI, it does not report any failures even though I can see that it outputs a and "actual" and "diff" file for the
.toMatchImageSnapshot()
expectation that fails. So it is recognizing that something is different but vitest isn't reporting a failure for some reason.Is there any sort of special treatment of
toMatchImageSnapshot()
failures based on environment variables or something like that? That's the only thing I can think of. Maybe something based on whetherCI
is set or not?The text was updated successfully, but these errors were encountered: