UNPKG

1.99 kBJavaScriptView Raw
1// Karma configuration
2// Generated on Fri Dec 05 2014 16:49:29 GMT-0500 (EST)
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: ['jspm', 'jasmine'],
14
15 jspm: {
16 // Edit this to your needs
17 loadFiles: ['src/**/*.js', 'test/**/*.js']
18 },
19
20
21 // list of files / patterns to load in the browser
22 files: [],
23
24
25 // list of files to exclude
26 exclude: [
27 ],
28
29
30 // preprocess matching files before serving them to the browser
31 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
32 preprocessors: {
33 'test/**/*.js': ['babel'],
34 'src/**/*.js': ['babel']
35 },
36 'babelPreprocessor': {
37 options: {
38 sourceMap: 'inline',
39 presets: [ 'es2015-loose', 'stage-1'],
40 plugins: [
41 'syntax-flow',
42 'transform-decorators-legacy',
43 'transform-flow-strip-types'
44 ]
45 }
46 },
47
48
49 // test results reporter to use
50 // possible values: 'dots', 'progress'
51 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
52 reporters: ['progress'],
53
54
55 // web server port
56 port: 9876,
57
58
59 // enable / disable colors in the output (reporters and logs)
60 colors: true,
61
62
63 // level of logging
64 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
65 logLevel: config.LOG_INFO,
66
67
68 // enable / disable watching file and executing tests whenever any file changes
69 autoWatch: true,
70
71
72 // start these browsers
73 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
74 browsers: ['Chrome'],
75
76
77 // Continuous Integration mode
78 // if true, Karma captures browsers, runs the tests and exits
79 singleRun: false
80 });
81};