forked from netpro2k/networked-aframe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
50 lines (48 loc) · 1.53 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
39
40
41
42
43
44
45
46
47
48
49
50
// karma configuration
var karma_conf = {
basePath: '../../',
browserify: {
debug: true,
paths: ['src'],
transform: ['browserify-istanbul']
},
browserNoActivityTimeout: 1000000,
browsers: [ 'Chrome', 'Firefox' ],
client: {
captureConsole: true,
mocha: {'ui': 'tdd', timeout: 3000}
},
envPreprocessor: [
'TEST_ENV'
],
files: [
// Define test files.
// {pattern: './tests/unit/**/*.test.js'},
{pattern: './tests/unit/NafInterface.test.js'},
{pattern: './tests/unit/NafLogger.test.js'},
{pattern: './tests/unit/utils.test.js'},
{pattern: './tests/unit/NetworkConnection.test.js'},
{pattern: './tests/unit/networked.test.js'},
{pattern: './tests/unit/networked_WithParent.test.js'},
{pattern: './tests/unit/networked_remote.test.js'},
{pattern: './tests/unit/NetworkEntities.test.js'},
{pattern: './tests/unit/Schemas.test.js'},
{pattern: './tests/unit/ChildEntityCache.test.js'},
{pattern: './tests/unit/Compressor.test.js'},
{pattern: './tests/unit/ComponentHelper.test.js'},
{pattern: './src/**/*.js', included: false}
// Serve test assets.
// {pattern: 'tests/assets/**/*', included: false, served: true}
],
frameworks: ['mocha', 'sinon-chai', 'chai-shallow-deep-equal', 'browserify'],
preprocessors: {
'tests/unit/**/*.js': ['browserify', 'env'],
'src/**/*.js': 'coverage'
},
reporters: ['mocha', 'coverage']
// restartOnFileChange: true
};
// Apply configuration
module.exports = function (config) {
config.set(karma_conf);
};