-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
36 lines (30 loc) · 898 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"use strict";
module.exports = function (config) {
config.set({
frameworks: ["jasmine", "karma-typescript"],
files: [{
pattern: "app/**/*.ts"
}],
preprocessors: {
"app/**/*.ts": ["karma-typescript"]
},
reporters: ["dots", "karma-typescript"],
karmaTypescriptConfig: {
tsconfig: "./tsconfig.json",
bundlerOptions: {
transforms: [
require('karma-typescript-es6-transform')()
],
entrypoints: /\.spec\.ts$/,
}
},
plugins: [
require('karma-coverage'),
require('karma-chrome-launcher'),
require('karma-typescript'),
require('karma-typescript-es6-transform'),
require('karma-jasmine')
],
browsers: ["Chrome"]
});
};