-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
59 lines (57 loc) · 1.73 KB
/
karma.conf.js
File metadata and controls
59 lines (57 loc) · 1.73 KB
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
53
54
55
56
57
58
59
const webpackConf = require("./webpack.js");
// const puppeteer = require('puppeteer');
// process.env.CHROME_BIN = puppeteer.executablePath();
// process.env.CHROMIUM_BIN = puppeteer.executablePath();
module.exports = function(config) {
config.set({
browsers: ['NoSandFirefox'],
frameworks: ['jasmine'],
reporters: ['spec'],
plugins: [
'karma-spec-reporter',
'karma-sourcemap-loader',
'karma-webpack',
'karma-firefox-launcher',
'karma-jasmine'
],
specReporter: {
maxLogLines: 5, // limit number of lines logged per test
suppressErrorSummary: false, // do not print error summary
suppressFailed: false, // do not print information about failed tests
suppressPassed: false, // do not print information about passed tests
suppressSkipped: true, // do not print information about skipped tests
showSpecTiming: true, // print the time elapsed for each spec
failFast: true // test would finish with error when a first fail occurs.
},
customLaunchers: {
NoSandFirefox: {
base: 'Firefox',
flags: ['--no-sandbox']
}
},
// autoWatch: !config.singleRun,
singleRun: false,
browserDisconnectTimeout:10000,
colors: true,
port: 9876,
basePath: '',
files: [
'node_modules/jquery/dist/jquery.js',
'app/app.module.js',
'node_modules/angular-mocks/angular-mocks.js',
'app/index_test.js'
],
preprocessors: {
'app/app.module.js': ['webpack', 'sourcemap'],
'app/index_test.js': ['webpack', 'sourcemap']
},
exclude: [],
webpack: webpackConf(undefined, {
'mode': 'test'
}),
webpackMiddleware: {
noInfo: true,
stats: 'errors-only'
}
});
};