Forward-port 3.5.0 upgrade script
[working/Evergreen.git] / Open-ILS / src / eg2 / karma.conf.js
1 // Karma configuration file, see link for more information
2 // https://karma-runner.github.io/1.0/config/configuration-file.html
3
4 module.exports = function (config) {
5   config.set({
6     basePath: '',
7     frameworks: ['jasmine', '@angular-devkit/build-angular'],
8     plugins: [
9       require('karma-jasmine'),
10       require('karma-chrome-launcher'),
11       require('karma-firefox-launcher'),
12       require('karma-jasmine-html-reporter'),
13       require('karma-coverage-istanbul-reporter'),
14       require('@angular-devkit/build-angular/plugins/karma')
15     ],
16     client:{
17       clearContext: false // leave Jasmine Spec Runner output visible in browser
18     },
19     coverageIstanbulReporter: {
20       dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
21       fixWebpackSourcePaths: true
22     },
23     angularCli: {
24       environment: 'dev'
25     },
26     reporters: ['progress', 'kjhtml'],
27     port: 9876,
28     colors: true,
29     logLevel: config.LOG_INFO,
30     autoWatch: true,
31     browsers: ['ChromeHeadless','FirefoxHeadless'],
32     customLaunchers: {
33         'FirefoxHeadless': {
34             base: 'Firefox',
35             flags: [
36                 '-headless',
37             ],
38         }
39     },
40     singleRun: true,
41     files: [
42       '/openils/lib/javascript/md5.js',
43       '/openils/lib/javascript/JSON_v1.js',
44       '/openils/lib/javascript/opensrf.js',
45       '/openils/lib/javascript/opensrf_ws.js',
46       // mock data for testing only
47       'src/test_data/IDL2js.js',
48       'src/test_data/eg_mock.js',
49     ]
50   });
51 };