forked from dead-claudia/thallium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
51 lines (40 loc) · 1.29 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
"use strict"
/* eslint-env node */
module.exports = function (config) {
config.set({
basePath: __dirname,
restartOnFileChange: true,
// browsers: ["Chrome", "Firefox", "PhantomJS"]
frameworks: ["browserify", "mocha"],
reporters: ["dots"],
customLaunchers: {
ChromeTravisCI: {
base: "Chrome",
flags: ["--no-sandbox"],
},
PhantomJSDebug: {
base: "PhantomJS",
debug: true,
},
},
files: [
"./test-util/globals.js",
{pattern: "./test/**/*.js", nocache: true},
{pattern: "./lib/**/*.js", included: false, served: false},
{pattern: "./scripts/**/*.js", included: false, served: false},
{pattern: "./r/**/*.js", included: false, served: false},
],
exclude: ["./test/cli/**"],
preprocessors: {
"./test-util/globals.js": ["browserify"],
},
browserify: {
debug: true,
insertGlobals: true,
fullPaths: true,
},
singleRun: !!process.env.TRAVIS,
// This should be way more than enough.
browserNoActivityTimeout: process.env.NO_TIMEOUT ? 1000000000 : 10000,
})
}