-
Notifications
You must be signed in to change notification settings - Fork 25
/
karma.conf.js
39 lines (38 loc) · 911 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
37
38
39
"use strict";
module.exports = (config) => {
config.set({
files: ["karma.shim.ts", "lib/**/*.ts", "http/**/*.ts", "router/**/*.ts"],
exclude: ["examples", "dev"],
autoWatch: true,
frameworks: ["jasmine", "karma-typescript"],
logLevel: config.LOG_INFO,
port: 9876,
preprocessors: {
"**/*.ts": ["karma-typescript"],
},
reporters: ["spec", "karma-typescript"],
singleRun: true,
browsers: ["Chrome"],
karmaTypescriptConfig: {
include: [
"karma.shim.ts",
"lib/**/*.ts",
"http/**/*.ts",
"router/**/*.ts",
],
exclude: ["node_modules", "examples", "dev"],
compilerOptions: {
baseUrl: ".",
paths: {
"ng-block-ui": ["lib"],
},
},
},
customLaunchers: {
Chrome_travis_ci: {
base: "Chrome",
flags: ["--no-sandbox"],
},
},
});
};