-
Notifications
You must be signed in to change notification settings - Fork 4
/
karma.conf.js
52 lines (52 loc) · 1.74 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
var puppeteer = require("puppeteer");
process.env.CHROME_BIN = puppeteer.executablePath();
module.exports = function(config) {
config.set({
browsers: ["ChromeHeadlessNoSandbox"],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: ["--no-sandbox","--disable-web-security"]
}
},
frameworks: ["jasmine"],
files: [
{
pattern: "Source/**/*.json",
included: false,
served: true,
watched: false,
nocache: true
},
"Build/test/storageManager.js",
"Build/test/CarbonFootprintCommon.js",
"Build/test/TrainsCarbonFootprintCore.js",
"Build/test/flightDataHelper.js",
"Build/test/FlightsFootprintCommon.js",
"Build/test/FlightsCarbonFootprintCore.js",
"Build/test/MapsCarbonFootprintCore.js",
"Build/test/basicValidator.js",
"Build/test/flightsValidator.js",
"Build/test/mapsValidator.js",
"Build/test/trainsValidator.js",
"Build/test/inform.js",
"Build/test/SentryServerMock.js",
"Build/test/MockHelper.js",
"Build/test/**/*Spec.js"
],
proxies: {
"core/resources/airplanes.json":
"/base/Source/Core/core/resources/airplanes.json",
"core/resources/airports.json":
"/base/Source/Core/core/resources/airports.json",
"pages/data/settings.json": "/base/Source/Core/pages/data/settings.json",
"/core/resources/airplanes.json":
"/base/Source/Core/core/resources/airplanes.json",
"/core/resources/airports.json":
"/base/Source/Core/core/resources/airports.json",
"/pages/data/settings.json": "/base/Source/Core/pages/data/settings.json"
},
reporters: ["mocha"],
logLevel: config.LOG_WARN
});
};