diff --git a/karma.conf.js b/karma.conf.js index 480d769de4f..85ec5069848 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -96,7 +96,7 @@ module.exports = function (config, base, karmaTypescriptConfig) { }, coverageOptions: { instrumentation: !isDebug, - exclude: /(\.test)|(spec\.ts$)/, + exclude: /\.(test|spec)\.ts$/, }, reports: { html: reportsDir,