-
Notifications
You must be signed in to change notification settings - Fork 18
/
karma.conf.js
51 lines (50 loc) · 1.16 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
47
48
49
50
51
module.exports = function (config) {
const { babel } = require('@rollup/plugin-babel');
const commonjs = require('@rollup/plugin-commonjs');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
config.set({
files: [
'node_modules/sinon/pkg/sinon.js',
'test/unit/tap-reporter.js',
'test/unit/helpers.js'
],
preprocessors: {
'test/unit/**.js': ['rollup']
},
rollupPreprocessor: {
external: ['sinon'],
output: {
globals: {
sinon: 'sinon'
},
format: 'iife',
name: 'JsReporters_Test',
sourcemap: true
},
// See rollup.config.js
plugins: [
nodeResolve({
preferBuiltins: false
}),
commonjs({
requireReturnsDefault: 'preferred'
}),
babel({
babelHelpers: 'bundled',
babelrc: false,
presets: [
['@babel/preset-env', {
targets: {
ie: 9
}
}]
]
})
]
},
frameworks: ['qunit'],
browsers: ['FirefoxHeadless'],
singleRun: true,
autoWatch: false
});
};