]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(jest): ignore node_modules from watched files (#162)
authorRahul Kadyan <hi@znck.me>
Tue, 8 Oct 2019 18:37:31 +0000 (00:07 +0530)
committerEvan You <yyx990803@gmail.com>
Tue, 8 Oct 2019 18:37:31 +0000 (14:37 -0400)
`jest --watch` fails with open file limit reached:

jest.config.js

index 6c322c834215eca4c48e0e6e9c55a9e009d4179b..c29c189b0c5c3e396233b1bf966467925966fbb3 100644 (file)
@@ -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/(.*?)$': '<rootDir>/packages/$1/src'