UNPKG

voluptatumquo

Version:

A wrapper for Electron Renderer APIs. Finally easy to use in Angular

49 lines (45 loc) 1.32 kB
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { var configuration = { basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ 'karma-jasmine', 'karma-chrome-launcher', 'karma-mocha-reporter', 'karma-coverage-istanbul-reporter', '@angular-devkit/build-angular/plugins/karma' ], client: { clearContext: false // leave Jasmine Spec Runner output visible in browser }, coverageIstanbulReporter: { dir: require('path').join(__dirname, '../../../coverage'), reports: ['html', 'lcovonly'], fixWebpackSourcePaths: true }, reporters: ['mocha'], mochaReporter: { ignoreSkipped: true }, port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: !process.env.TRAVIS, browsers: ['Chrome'], customLaunchers: { ChromeTravisCi: { base: 'Chrome', flags: ['--no-sandbox'] } }, singleRun: process.env.TRAVIS }; if (process.env.TRAVIS){ config.browsers = [ 'ChromeTravisCi' ]; } config.set(configuration); };