From: Rahul Kadyan Date: Tue, 8 Oct 2019 18:37:31 +0000 (+0530) Subject: chore(jest): ignore node_modules from watched files (#162) X-Git-Tag: v3.0.0-alpha.0~552 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c4478b00b9e758952b8dc2cd9697d875b255e05;p=thirdparty%2Fvuejs%2Fcore.git chore(jest): ignore node_modules from watched files (#162) `jest --watch` fails with open file limit reached: --- diff --git a/jest.config.js b/jest.config.js index 6c322c8342..c29c189b0c 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'