forked from vmware-archive/clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
67 lines (61 loc) · 2.25 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
module.exports = function(karma) {
"use strict";
karma.set({
autoWatch: true,
basePath: "",
frameworks: ["jasmine", "jasmine-matchers"],
files: [
//PrismJS
{ pattern: './node_modules/prismjs/themes/prism.css', included: true, watched: false },
{ pattern: './node_modules/prismjs/prism.js', included: true, watched: false },
{ pattern: './node_modules/prismjs/components/prism-typescript.min.js', included: true, watched: false },
// Custom Elements
{ pattern: './node_modules/@webcomponents/custom-elements/custom-elements.min.js', included: true, watched: false },
// Clarity
{ pattern: './dist/clr-ui/clr-ui.min.css', included: true, watched: true },
// Entry point to all our spec files
{ pattern: "./tests/tests.entry.ts", watched: false }
],
exclude: [ 'node_modules/**/*spec.js' ],
preprocessors: {
"./tests/tests.entry.ts": ["webpack"]
},
mime: {
'text/x-typescript': ['ts','tsx']
},
reporters: ["mocha"],
coverageReporter: {
dir: "tests/coverage/",
reporters: [
{ type: "text-summary" },
{ type: "json" },
{ type: "html" }
]
},
browsers: ["Chrome_Headless"],
browserNoActivityTimeout: 100000,
port: 9018,
runnerPort: 9101,
colors: true,
logLevel: karma.LOG_INFO,
singleRun: process.env.TRAVIS? true: false,
concurrency: Infinity,
webpackServer: { noInfo: true, quiet: true },
webpackMiddleware: { noInfo: true, quiet: true },
webpack: require("./webpack.test.config"),
customLaunchers: {
Chrome_Headless: {
base: 'Chrome',
flags: ['--headless', '--disable-gpu', '--remote-debugging-port=9222']
}
},
mochaReporter: {
ignoreSkipped: true
}
});
};