forked from azeem/webvs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
34 lines (33 loc) · 898 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
34
var webpack = require('webpack');
process.env.TARGET = 'web';
var webpackConfig = require('./webpack.config');
var packageJson = require('./package.json');
module.exports = function(config) {
config.set({
basePath: './',
frameworks: ['mocha'],
mime: {
'text/x-typescript': ['ts']
},
files: [
'test/func/testIndex.ts',
{pattern: './test/func/assert/**/*', included: false},
{pattern: './resources/**/*', included: false}
],
preprocessors: {
'test/func/testIndex.ts': ['webpack']
},
webpack: {
resolve: webpackConfig.resolve,
module: webpackConfig.module,
plugins: [
new webpack.DefinePlugin({
RESOURCE_PACK_URL: JSON.stringify('/base/resources/'),
WEBVS_VERSION: JSON.stringify(packageJson.version)
})
]
},
reporters: ['mocha'],
browsers: ['Chrome'],
})
}