Skip to content

Commit

Permalink
Solve some dependency issues
Browse files Browse the repository at this point in the history
  • Loading branch information
renatho committed Nov 1, 2024
1 parent 31bc767 commit d4d1f7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ module.exports = {
'\\.(gif|jpg|jpeg|png)$': '<rootDir>/tests/__mocks__/image.js',
},
coverageReporters: [ 'clover' ],
transformIgnorePatterns: [
'node_modules/(?!(react-colorful|parsel-js|uuid)/)',
],
transform: {
'^.+\\.jsx?$': 'babel-jest',
},
};
2 changes: 2 additions & 0 deletions tests/__mocks__/uuid.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const v1 = jest.fn( () => 'mocked-uuid-v1' );
export const v4 = jest.fn( () => 'mocked-uuid-v4' );

0 comments on commit d4d1f7e

Please sign in to comment.