-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
32 lines (28 loc) · 768 Bytes
/
Copy pathkarma.conf.js
File metadata and controls
32 lines (28 loc) · 768 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
const webpackConfig = require('./webpack.config.js');
module.exports = function(config) {
config.set({
frameworks: ['qunit'],
plugins: ['karma-qunit', 'karma-chrome-launcher', 'karma-webpack'],
browsers: ['Chrome'],
files: [
// Test context
'tests/tests.webpack.js',
// Watch all JS files, but don't include them in the build
// (they're already required through tests.webpack.js)
{
pattern: '{tests,src}/**/*.spec.js',
included: false,
served: false,
watched: true
},
],
preprocessors: {
'tests/tests.webpack.js': ['webpack']
},
webpack: Object.assign(webpackConfig, {
entry: undefined,
output: undefined
}),
singleRun: true,
});
};