UNPKG

1.72 kBJavaScriptView Raw
1// Karma configuration
2// Generated on Sat Oct 18 2014 17:38:05 GMT-0700 (PDT)
3
4module.exports = function(config) {
5 config.set({
6
7 // base path that will be used to resolve all patterns (eg. files, exclude)
8 basePath: '',
9
10
11 // frameworks to use
12 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13 frameworks: ['mocha'],
14
15
16 // list of files / patterns to load in the browser
17 files: [
18 'node_modules/lodash/lodash.js',
19 'build/graphlib.core.js',
20
21 'node_modules/chai/chai.js',
22 'test/bundle-test.js'
23 ],
24
25
26 // list of files to exclude
27 exclude: [
28 ],
29
30
31 // preprocess matching files before serving them to the browser
32 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
33 preprocessors: {
34 },
35
36
37 // test results reporter to use
38 // possible values: 'dots', 'progress'
39 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
40 reporters: ['progress'],
41
42
43 // web server port
44 port: 9876,
45
46
47 // enable / disable colors in the output (reporters and logs)
48 colors: true,
49
50
51 // level of logging
52 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
53 logLevel: config.LOG_INFO,
54
55
56 // enable / disable watching file and executing tests whenever any file changes
57 autoWatch: true,
58
59
60 // start these browsers
61 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
62 browsers: ['Chrome', 'Firefox', 'PhantomJS', 'Safari'],
63
64
65 // Continuous Integration mode
66 // if true, Karma captures browsers, runs the tests and exits
67 singleRun: false
68 });
69};