Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 6d150c4

Browse files
committed
karma config
1 parent 66ab225 commit 6d150c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = function(config) {
8585
files: ['test_index.ts'],
8686

8787
// list of files / patterns to exclude
88-
exclude: [],
88+
exclude: config.excludeFiles ? config.excludeFiles.split(',') : [],
8989

9090
// preprocess matching files before serving them to the browser
9191
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"build": "rm -rf build/examples; mkdir -p build/examples/; cp -r ./examples ./build; webpack --config webpack-examples.config.js",
99
"build-odoo": "rm -rf build/examples; mkdir -p build/examples/; cp -r ./examples ./build; webpack --config webpack-odoo.config.js",
1010
"perf": "karma start --include-files test/**/*.perf.ts",
11-
"coverage": "karma start --coverage",
11+
"coverage": "karma start --coverage --include-files **/*.test.ts --exclude-files **/*.perf.ts",
1212
"debug": "karma start --no-browsers --debug",
13-
"test": "karma start"
13+
"test": "karma start --exclude-files **/*.perf.ts"
1414
},
1515
"repository": {
1616
"type": "git",

0 commit comments

Comments
 (0)