-
Notifications
You must be signed in to change notification settings - Fork 6
/
karma.conf.js
40 lines (32 loc) · 1004 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
35
36
37
38
39
40
var path = require( 'path' );
module.exports = function ( config ) {
config.set( {
frameworks: [ 'qunit' ],
files: [
'node_modules/jquery/dist/jquery.js',
// TODO: install JS dependencies using npm
'node_modules/wikibase-data-values/lib/util/util.inherit.js',
'node_modules/wikibase-data-values/src/dataValues.js',
'node_modules/wikibase-data-values/src/DataValue.js',
'node_modules/wikibase-data-values/src/values/StringValue.js',
'node_modules/wikibase-data-values/src/values/UnDeserializableValue.js',
'tests/**/*.tests.js'
],
preprocessors: {
'tests/**/*.tests.js': [ 'webpack' ],
'node_modules/wikibase-data-model/src/index.js': [ 'webpack' ]
},
webpack: {
mode: 'development',
resolve: {
alias: {
// eslint-disable-next-line no-undef
'wikibase.datamodel': path.resolve( __dirname, 'node_modules/wikibase-data-model/src/index.js' )
}
}
},
port: 9876,
logLevel: config.LOG_INFO,
browsers: [ 'PhantomJS' ]
} );
};