forked from openannotation/annotator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
36 lines (31 loc) · 1.11 KB
/
karma.conf.js
File metadata and controls
36 lines (31 loc) · 1.11 KB
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
module.exports = function (karma) {
karma.set({
frameworks: ["mocha", "browserify"],
files: [
{pattern: 'test/fixtures/*.html', included: false},
{pattern: 'node_modules/chai/chai.js', watched: false},
{pattern: 'node_modules/sinon/pkg/sinon.js', watched: false},
{pattern: 'node_modules/sinon/pkg/sinon-ie.js', watched: false},
'test/init.js',
'test/spec/**/*_spec.js'
],
exclude: [
'test/spec/bootstrap_spec.js',
'test/spec/plugin/auth_spec.js',
'test/spec/plugin/markdown_spec.js',
'test/spec/plugin/tags_spec.js'
],
preprocessors: {
'test/spec/**/*_spec.js': 'browserify'
},
browserify: {
debug: true,
prebundle: function (bundle) {
// This allows annotator-plugintools to require annotator as
// 'annotator' in the test environment.
bundle.require('./src/annotator', {expose: 'annotator'});
}
},
browsers: ['PhantomJS']
});
};