forked from AzureAD/microsoft-authentication-library-for-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
57 lines (54 loc) · 1.83 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
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const path = require("path");
const process = require("process");
process.env.CHROME_BIN = require("puppeteer").executablePath();
module.exports = function (config) {
config.set({
frameworks: ["jasmine-ajax", "jasmine"],
files: [
"node_modules/angular/angular.js",
"node_modules/angular-mocks/angular-mocks.js",
"node_modules/angular-route/angular-route.js",
"node_modules/angular-resource/angular-resource.js",
"node_modules/angular-ui-router/release/angular-ui-router.js",
"dist/msal-angular.js",
"tests/testApp.js",
"tests/angularModuleSpec.js"
],
plugins: [
"karma-phantomjs-launcher",
"karma-jasmine",
"karma-jasmine-ajax",
"karma-chrome-launcher"
],
// start these browsers
browsers: ["Chrome", "ChromeHeadless", "ChromeHeadlessNoSandbox"],
reporters: ["progress", "coverage"],
preprocessors: {
"dist/*.js": ["coverage"],
},
coverageReporter: {
dir: "coverage/",
reporters: [
{ type: "html", subdir: "report-html" },
{ type: "cobertura", subdir: ".", file: "cobertura.xml" }
]
},
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: [
"--no-sandbox",
"--disable-gpu",
// Without a remote debugging port, Google Chrome exits immediately.
"--remote-debugging-port=9222",
]
}
},
logLevel: config.LOG_INFO,
singleRun: true
});
};