blob: c3104b44cd7fbc0875f57007b392fd5ad13d7ace [file] [log] [blame]
Kevin Lubick92c91712018-08-09 10:00:02 -04001module.exports = function(config) {
2 config.set({
3
4 // frameworks to use
5 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
6 frameworks: ['jasmine'],
7
8
9 // list of files / patterns to load in the browser
10 files: [
11 { pattern: 'npm-wasm/bin/test/pathkit.wasm', included:false, served:true},
12 { pattern: 'tests/*.json', included:false, served:true},
13 'npm-wasm/bin/test/pathkit.js',
14 'tests/*.spec.js'
15 ],
16
Kevin Lubick97d6d982018-08-10 15:53:16 -040017 proxies: {
18 "/pathkit/": "/base/npm-wasm/bin/test/"
19 },
20
Kevin Lubick92c91712018-08-09 10:00:02 -040021 // test results reporter to use
22 // possible values: 'dots', 'progress'
23 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
24 reporters: ['progress'],
25
26 // web server port
27 port: 4444,
28
29 // enable / disable colors in the output (reporters and logs)
30 colors: true,
31
32 // level of logging
33 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
34 logLevel: config.LOG_INFO,
35
36 // enable / disable watching file and executing tests whenever any file changes
37 autoWatch: true,
38
39 // start these browsers
40 browsers: ['Chrome'],
41
42 // Continuous Integration mode
43 // if true, Karma captures browsers, runs the tests and exits
44 singleRun: false,
45
46 // Concurrency level
47 // how many browser should be started simultaneous
48 concurrency: Infinity,
49 })
50}