Make jest does not watch .json file in the --watch mode

This commit is contained in:
Hung Viet Nguyen 2022-03-15 15:20:50 +07:00
parent 5104a57447
commit d85a387b24
No known key found for this signature in database
GPG Key ID: CAFDC50535B4A074

View File

@ -3,4 +3,5 @@ module.exports = {
setupFilesAfterEnv: ['<rootDir>/test/unit.setup.js'],
modulePathIgnorePatterns: ['.cache'],
testMatch: ['/**/__tests__/**/*.[jt]s?(x)'],
watchPathIgnorePatterns: ['<rootDir>/.*\\.json'],
};