-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
39 lines (29 loc) · 855 Bytes
/
karma.conf.js
File metadata and controls
39 lines (29 loc) · 855 Bytes
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
"use strict";
module.exports = function(karma) {
karma.set({
frameworks: [ "jasmine", "browserify", "chai", "fixture" ],
files: [
{ pattern: "./ftw/candlestick/js/test/spec/**/*.js", watched: false, included: true, served: true },
{ pattern: "./ftw/candlestick/js/test/fixtures/**/*.html" }
],
reporters: ['dots'],
colors: true,
preprocessors: {
"./ftw/candlestick/js/test/**/*.js": "browserify",
"./ftw/candlestick/js/test/fixtures/**/*.html": "html2js"
},
browserify: {
debug: true,
paths: ["./ftw/candlestick/js/src", "./ftw/candlestick/js/test/spec"],
transform: [
["babelify", {
presets: ["es2015"],
sourceRoot: "../../src"
}]
]
},
browsers: [ "PhantomJS" ],
singleRun: false,
autoWatch: true
});
};