forked from slab/parchment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
68 lines (67 loc) · 1.64 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
var webpackConfig = require('./webpack.conf');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'test/parchment.ts',
'test/registry/*.js',
'test/unit/linked-list.js', // Control test order
'test/unit/registry.js',
'test/unit/attributor.js',
'test/unit/blot.js',
'test/unit/container.js',
'test/unit/scroll.js',
'test/unit/block.js',
'test/unit/inline.js',
'test/unit/embed.js',
'test/unit/text.js',
'test/unit/lifecycle.js',
],
preprocessors: {
'test/registry/*.js': ['babel'],
'test/parchment.ts': ['webpack'],
},
mime: {
'text/x-typescript': ['ts'],
},
webpack: webpackConfig,
webpackMiddleware: {
stats: {
assets: false,
chunks: false,
colors: true,
errorDetails: true,
hash: false,
timings: false,
version: false,
},
},
exclude: [],
reporters: ['progress'],
coverageReporter: {
dir: '.build/coverage',
reporters: [{ type: 'html' }, { type: 'text' }, { type: 'lcov' }],
},
browsers: ['Chrome'],
customLaunchers: {
'saucelabs-chrome': {
base: 'SauceLabs',
browserName: 'Chrome',
platform: 'OS X 10.11',
version: 'beta',
},
},
sauceLabs: {
testName: 'Parchment Unit Tests',
build: process.env.TRAVIS_BUILD_ID,
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
startConnect: false,
},
port: 10876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
singleRun: true,
});
};