Giter Club home page Giter Club logo

Comments (2)

thomasbertet avatar thomasbertet commented on May 21, 2024

Hi @satispunk, I attempted to solve the issue in #77. Could you test it with your project to see if its working for you ?

from jest-image-snapshot.

mattrabe avatar mattrabe commented on May 21, 2024

@thomasbertet Thank you for the PR which I see got merged. However, I can't seem to get it to work. I'm running jest with --watch and when a jest-image-snapshot test fails, I get the following:

 End2End::NewsScreen › it looks the same on desktop

    Expected image to be the same size as the snapshot (1280x5541), but was different (1280x800).
    See diff for details: /web/src/screens/News/__tests-e2e__/__image_snapshots__/__diff_output__/fullPage-desktop-diff.png

      19 |     fullPage: true,
      20 |   })
    > 21 |   expect(image).toMatchImageSnapshot(getImageSnapshotConfig(name))
         |                 ^
      22 | }
      23 | 
      24 | export const fullPageImageSnapshotMobileLooksTheSame = async (

      at toMatchImageSnapshot (src/utils/jest/tests.js:21:17)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 2 total
Snapshots:   2 passed, 2 total
Time:        9.113s
Ran all test suites related to changed files.

Watch Usage
 › Press a to run all tests.
 › Press f to run only failed tests.
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press q to quit watch mode.
 › Press Enter to trigger a test run.

...no mention of i or u. Am I missing something?

from jest-image-snapshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.