Skip to content

Commit 9cc8050

Browse files
committed
fix karma:
* add tsconfig to silence errors * remove custom types exclude (seems to be working without now) * lint
1 parent a2c8296 commit 9cc8050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

karma.conf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
module.exports = function(config) {
22
config.set({
33
frameworks: ['mocha', 'karma-typescript'],
4-
exclude: ["src/@types/**"], // ref: https://github.com/monounity/karma-typescript/issues/254
54
files: ['src/**/*.ts', 'test/**/*.ts'],
65
preprocessors: {
7-
'**/*.ts': ['karma-typescript'],
6+
'**/*.ts': ['karma-typescript']
87
},
98
plugins: ['karma-mocha', 'karma-typescript', 'karma-chrome-launcher', 'karma-firefox-launcher'],
109
karmaTypescriptConfig: {
1110
bundlerOptions: {
12-
entrypoints: /\.spec\.ts$/,
11+
entrypoints: /\.spec\.ts$/
1312
},
13+
tsconfig: './tsconfig.json'
1414
},
1515
colors: true,
1616
reporters: ['progress', 'karma-typescript'],
@@ -19,6 +19,6 @@ module.exports = function(config) {
1919
concurrency: Infinity,
2020
// Fail after timeout
2121
browserDisconnectTimeout: 100000,
22-
browserNoActivityTimeout: 100000,
22+
browserNoActivityTimeout: 100000
2323
})
2424
}

0 commit comments

Comments
 (0)