-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
42 lines (37 loc) · 1.22 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
const resolve = require('rollup-plugin-node-resolve')
const commonjs = require('rollup-plugin-commonjs')
const toES5 = require('@rollup/plugin-buble')
process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = function(config) {
config.set({
basePath: ''
, frameworks: [ 'jasmine' ]
, files: [
'node_modules/jquery/dist/jquery.min.js'
, { pattern: 'tests/test-bundle.js', watched: false }
]
, exclude: [ 'test/sources/test.js', 'test/sources/attest.js' ]
, autoWatch: true
, singleRun: false
// , preprocessors: { 'tests/**/*.js': ['rollup'] }
// , rollupPreprocessor: {
// plugins: [resolve(), commonjs(), toES5()]
// , format: 'iife'
// , name: 'lawfetcher'
// , sourcemap: 'inline'
// }
// , browserify: {
// debug: true
// , transform: [ [ 'babelify', { presets: ['es2015'] } ] ]
// }
// possible values:
// config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
, logLevel: config.LOG_WARN
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
, reporters: ['dots']
, colors: true
, browsers: ['ChromeHeadless']
, port: 9876
, concurrency: Infinity
})
}