-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
38 lines (30 loc) · 1.09 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
const webpackConfig = require('./webpack.config');
// Karma configuration
module.exports = function (config) {
config.set({
frameworks: ['jasmine'],
files: [
'node_modules/core-js/client/shim.min.js',
// Zone.js dependencies
'node_modules/zone.js/dist/zone.js',
'node_modules/zone.js/dist/long-stack-trace-zone.js',
'node_modules/zone.js/dist/async-test.js',
'node_modules/zone.js/dist/fake-async-test.js',
'node_modules/zone.js/dist/sync-test.js',
'node_modules/zone.js/dist/proxy.js',
'node_modules/zone.js/dist/jasmine-patch.js',
{ pattern: 'src/**/*.spec.ts', watched: false }
],
preprocessors: {
'src/**/*.spec.ts': ['webpack', 'sourcemap'],
},
webpack: { ...webpackConfig, output: undefined, entry: undefined, devtool: 'inline-source-map' },
webpackMiddleware: {
stats: 'errors-only'
},
browsers: ['PhantomJS'],
client: {
useIframe: false
}
});
};