From 5c4478b00b9e758952b8dc2cd9697d875b255e05 Mon Sep 17 00:00:00 2001 From: Rahul Kadyan Date: Wed, 9 Oct 2019 00:07:31 +0530 Subject: [PATCH] chore(jest): ignore node_modules from watched files (#162) `jest --watch` fails with open file limit reached: --- jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.config.js b/jest.config.js index 6c322c83..c29c189b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,6 +10,7 @@ module.exports = { coverageDirectory: 'coverage', coverageReporters: ['html', 'lcov', 'text'], collectCoverageFrom: ['packages/*/src/**/*.ts'], + watchPathIgnorePatterns: ['/node_modules/'], moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], moduleNameMapper: { '^@vue/(.*?)$': '/packages/$1/src'