-
Notifications
You must be signed in to change notification settings - Fork 8
/
karma.conf.js
37 lines (37 loc) · 1.21 KB
/
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
37
module.exports = function (config) {
config.set({
frameworks: ["jasmine", "karma-typescript"],
files: [
'./node_modules/phantomjs-polyfill-find/find-polyfill.js',
{ pattern: "src/**/*.ts" },
{ pattern: "src/**/*.tsx" },
{ pattern: "test/**/*.ts" },
{ pattern: "test/**/*.tsx" },
],
preprocessors: {
"**/*.ts": ["karma-typescript"],
"**/*.tsx": ["karma-typescript"],
},
reporters: ["spec", "karma-typescript"],
browsers: ["PhantomJS"],
karmaTypescriptConfig: {
bundlerOptions: {
exclude: ["react/addons", "react/lib/ExecutionEnvironment", "react/lib/ReactContext"],
entrypoints: /\.spec\.tsx?$/,
compilerOptions: {
sourceMap: true,
},
include: [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.css",
],
reports: {
"html": "coverage",
"text-summary": "",
},
tsconfig: "./tsconfig.json"
}
}
});
};