From d85a387b24e40e63c86cf03ae4ad486704de57e1 Mon Sep 17 00:00:00 2001 From: Hung Viet Nguyen Date: Tue, 15 Mar 2022 15:20:50 +0700 Subject: [PATCH] Make jest does not watch .json file in the --watch mode --- jest.base-config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.base-config.js b/jest.base-config.js index 77a593e8ef..2ca270f001 100644 --- a/jest.base-config.js +++ b/jest.base-config.js @@ -3,4 +3,5 @@ module.exports = { setupFilesAfterEnv: ['/test/unit.setup.js'], modulePathIgnorePatterns: ['.cache'], testMatch: ['/**/__tests__/**/*.[jt]s?(x)'], + watchPathIgnorePatterns: ['/.*\\.json'], };