Skip to content

Commit

Permalink
Merge pull request #457 from guardian/aa-fix-mock-warning
Browse files Browse the repository at this point in the history
chore: Fix "duplicate manual mock found" message
  • Loading branch information
akash1810 authored Apr 16, 2021
2 parents 04e9f07 + b27034e commit 2b3296f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,13 @@ module.exports = {

// ignore this file as it's used to demonstrate custom lint rule and Jest flags unused declarations
testPathIgnorePatterns: ["<rootDir>/eslint/rules/valid-constructors.test.ts"],

/*
Ignore `lib` to prevent a 'duplicate manual mock found" warning
See:
- https://jestjs.io/docs/configuration#modulepathignorepatterns-arraystring
- https://github.com/facebook/jest/issues/6801#issuecomment-712951064
- #448
*/
modulePathIgnorePatterns: ["<rootDir>/lib"],
};

0 comments on commit 2b3296f

Please sign in to comment.