-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathkarma.conf.js
46 lines (45 loc) · 1.35 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
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function (config) {
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
browsers: ['Chrome'],
client: {
jasmine: {
failFast: true
}
},
// enable / disable colors in the output (reporters and logs)
colors: true,
concurrency: Infinity,
customContextFile: 'tests/context.html',
customDebugFile: 'tests/debug.html',
exclude: [
// TODO: need to figure out the best way to test AMD - perhaps separately
// from the rest of the tests
'tests/spec/amd-spec.js'
],
files: ['tests/spec/spec-helpers.js', 'tests/spec/**/*-spec.js'],
frameworks: ['jasmine'],
jasmineHtmlReporter: {
suppressAll: true
},
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
middleware: ['serve-static-map'],
// web server port
port: 3000,
proxies: {
'/F2/apps/test/http-post': 'http://localhost:8080/F2/apps/test/http-post'
},
reporters: ['kjhtml'],
serveStaticMap: [
{ fsPath: './dist', baseURL: '/dist' },
{ fsPath: './tests', baseURL: '/tests' }
],
singleRun: false
});
};