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

Commit 5f76418

Browse files
committed
karma config
1 parent 2139035 commit 5f76418

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = function(config) {
8484
files: config.includeFiles ? config.includeFiles.split(',') : ['packages/**/test/**/*.ts'],
8585

8686
// list of files / patterns to exclude
87-
exclude: [],
87+
exclude: config.excludeFiles ? config.excludeFiles.split(',') : [],
8888

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"scripts": {
77
"dev": "webpack-dev-server",
88
"build": "rm -rf build/examples; mkdir -p build/examples/; cp -r ./examples ./build; webpack",
9-
"perf": "karma start --include-files test/**/*.perf.ts",
10-
"coverage": "karma start --coverage",
9+
"perf": "karma start --include-files **/*.perf.ts",
10+
"coverage": "karma start --coverage --include-files **/*.test.ts --exclude-files **/*.perf.ts",
1111
"debug": "karma start --no-browsers --debug",
12-
"test": "karma start"
12+
"test": "karma start --exclude-files **/*.perf.ts"
1313
},
1414
"repository": {
1515
"type": "git",

0 commit comments

Comments
 (0)