module.exports = {
  rootDir: __dirname,
  setupFilesAfterEnv: ['<rootDir>/test/unit.setup.js'],
  modulePathIgnorePatterns: ['.cache'],
  testMatch: ['/**/__tests__/**/*.[jt]s?(x)'],
};

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

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