forked from bbc/waveform-data.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
49 lines (39 loc) · 936 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
40
41
42
43
44
45
46
47
48
49
"use strict";
/* globals process */
module.exports = function(config) {
var isCI = Boolean(process.env.CI);
config.set({
basePath: "",
files: [
{ pattern: "lib/**/*.js", included: false, served: false, watched: true },
"test/unit/**/*.js"
],
frameworks: ["mocha", "browserify"],
preprocessors: {
"test/**/*.js": ["browserify"],
"waveform-data.js": ["browserify"]
},
browserify: {
debug: true,
external: ["dist/waveform-data.min.js"],
transform: [
"brfs"
]
},
customLaunchers: {
FirefoxHeadless: {
base: "Firefox",
flags: ["-headless"]
}
},
reporters: ["spec"],
port: 8080,
runnerPort: 9100,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: !isCI,
browsers: isCI ? ["Firefox"] : ["Chrome", "Safari", "Firefox"],
captureTimeout: 30000,
singleRun: true
});
};