From 42199f6ebce9dbbaf003151b84e57ce874be262f Mon Sep 17 00:00:00 2001 From: lana-k Date: Thu, 14 Jan 2021 18:48:11 +0100 Subject: [PATCH] ignore node_modules in watch --- karma.conf.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index ce956e7..2bfee1c 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -81,7 +81,7 @@ module.exports = function (config) { logLevel: config.LOG_INFO, // enable / disable watching file and executing tests whenever any file changes - autoWatch: true, + autoWatch: false, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher @@ -176,6 +176,11 @@ module.exports = function (config) { fs: 'empty' } }, + webpackMiddleware: { + watchOptions: { + ignored: [/\/\./, 'node_modules'] + } + }, proxies: { '/js/': '/base/node_modules/sql.js/dist/' }