Prior99 / jest-screenshot

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

Create snapshot directory #1

Closed Prior99 closed 6 years ago

Prior99 commented 6 years ago

If the snapshot directory doesn't exist, the test fails:

    ENOENT: no such file or directory, open '/home/prior/repositories/jest-screenshot/example/__tests__/__snapshots__/test-npmjs-com-js-npmjs-com-looks-as-expected-1.snap.png'

      at _callee$ (__tests__/test-npmjs-com.js:21:55)
      at step (__tests__/test-npmjs-com.js:3:191)
      at __tests__/test-npmjs-com.js:3:361
          at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)
Prior99 commented 6 years ago

This has long since been implemented and tested.