-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.coffee
43 lines (43 loc) · 1.06 KB
/
karma.conf.coffee
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
module.exports = (config) ->
config.set
singleRun: process.env.WATCH isnt '1'
frameworks: ['mocha']
client:
useIframe: true
captureConsole: true
mocha:
timeout: 300
browsers: if process.env.ALL_BROWSERS is '1'
['Chrome', 'Firefox']
else
['ChromeHeadless']
files: [
'test/**/*.coffee'
]
preprocessors:
'**/*.coffee': ['webpack']
webpack:
mode: 'development'
devtool: 'inline-source-map'
module:
exprContextRegExp: /$^/
exprContextCritical: false
rules: [
{
test: /\.coffee$/
use: ['zolmeister-coffee-coverage-loader']
}
]
resolve:
extensions: ['.coffee', '.js']
webpackMiddleware:
noInfo: true
stats: 'errors-only'
reporters: ['progress', 'coverage-istanbul']
coverageIstanbulReporter:
reports: ['json']
combineBrowserReports: true
fixWebpackSourcePaths: true
skipFilesWithNoCoverage: false
instrumentation:
excludes: ['**/test/**']