-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathkarma.conf.js
More file actions
37 lines (33 loc) · 903 Bytes
/
karma.conf.js
File metadata and controls
37 lines (33 loc) · 903 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
module.exports = config => {
config.set({
basePath: '',
frameworks: ['tap', 'browserify'],
files: [
{pattern: 'node_modules/phaser/build/phaser.js'},
{pattern: 'test/integration/*.js'},
{pattern: 'src/assets/**/*.*', watched: false, included: false},
],
preprocessors: {
'test/integration/*.js': ['browserify'],
},
browserify: {
transform: process.env['WATCH'] ? [] : ["browserify-istanbul"]
},
reporters: ['dots', 'coverage'],
// Run headless unless WATCH=1.
browsers: [
process.env['WATCH'] ? 'Chrome' : 'ChromeHeadless'
],
// Run and exit unless WATCH=1.
singleRun: !process.env['WATCH'],
// 30 seconds.
browserNoActivityTimeout: 30 * 1000,
// Code coverage.
coverageReporter: {
dir: 'coverage/integration',
reporters: [
{type: 'lcovonly'},
],
},
});
};