-
Notifications
You must be signed in to change notification settings - Fork 198
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
Diffs returning errors instead of fails #26
Comments
@ruxiang05 can you provide an example or sample repo showing how you are using it and tell me what version you are using? I have not seen that issue. The matcher is supposed to fail the test just the same as any other matcher. |
const puppeteer = require('puppeteer'); test('visual regression', async (done) => { await page.evaluate( () => { let storyLinks = await page.evaluate((selector) => { await browser.close(); I'm using version 1.0.1 because of #22 |
The issue is that you are unnecessarily using Instead of You just need to do |
Doesn't change anything, tried it. |
It is hard to read your code without it being formatted but it seems to me (from a very quick glance) that you are not handling your async code properly in the test. Read up on testing asynchronous code in the jest docs. If I have time later I will look into this with more detail but it does not seem to be a |
…for-custom-snapshots-dir to master * commit 'cb529963b7f00c6c1be2a43bf4a7a815e611a0f0': fix(configureToMatchImageSnapshot): add ability to have common customSnapshotsDir
… feature/allow-for-custom-snapshots-dir to master * commit 'cb529963b7f00c6c1be2a43bf4a7a815e611a0f0': fix(configureToMatchImageSnapshot): add ability to have common customSnapshotsDir
When there is a diff between the images, the tests throw an error instead of returning a failed test. Is that a normal behaviour or how shall I handle failed test?
The text was updated successfully, but these errors were encountered: