forked from indrimuska/angular-moment-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
33 lines (31 loc) · 841 Bytes
/
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
let webpackConfig = require('./webpack.config');
let generateJsonPlugin = require('generate-json-webpack-plugin');
webpackConfig.entry = {};
webpackConfig.plugins = webpackConfig.plugins.filter(plugin => !(plugin instanceof generateJsonPlugin));
module.exports = function (config) {
config.set({
files: [
'node_modules/jquery/dist/jquery.js',
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/moment/min/moment-with-locales.js',
'src/index.ts',
'tests/hacks.ts',
'tests/**/!(hacks|utility).ts'
],
preprocessors: {
'**/*.ts': ['webpack']
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true,
stats: 'errors-only'
},
mime: {
'text/x-typescript': ['ts']
},
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
singleRun: true
});
};