Skip to content

Commit

Permalink
fix: mock
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Feb 18, 2022
1 parent c25943e commit 2c9cc92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion examples/with-jest-babel/__mocks__/fileMock.js
@@ -1,3 +1,8 @@
// Read more at "Handling stylesheets and image imports" on https://nextjs.org/docs/testing

module.exports = { src: '/img.jpg', height: 24, width: 24 }
module.exports = {
src: '/img.jpg',
height: 24,
width: 24,
blurDataURL: 'data:image/png;base64,imagedata',
}
7 changes: 6 additions & 1 deletion packages/next/build/jest/__mocks__/fileMock.js
@@ -1 +1,6 @@
module.exports = { src: '/img.jpg', height: 24, width: 24 }
module.exports = {
src: '/img.jpg',
height: 24,
width: 24,
blurDataURL: 'data:image/png;base64,imagedata',
}

0 comments on commit 2c9cc92

Please sign in to comment.