forked from TommyTeaVee/showroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
38 lines (30 loc) · 914 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
"use strict";
module.exports = function(karma) {
karma.set({
frameworks: [ "jasmine", "browserify", "fixture" ],
files: [
{ pattern: "./test/setup.js", watched: false, included: true },
{ pattern: "./test/**/*.js", watched: false, included: true },
{ pattern: "./test/fixtures/**/*.html", watched: false, included: true, served: true }
],
reporters: [ "spec" ],
specReporter: {
maxLogLines: 10,
suppressErrorSummary: false,
suppressFailed: false,
suppressSkipped: true,
showSpecTiming: true
},
preprocessors: {
"test/**/*.js": "browserify",
"test/fixtures/**/*.html": "html2js"
},
browserify: {
debug: true,
paths: ["src", "test/spec"],
transform: [ ["babelify", { presets: ["es2015-ie"], plugins: ["transform-es2015-classes"] }] ]
},
singleRun: false,
autoWatch: true
});
};