showing results for - "phantomjs in angular"
Simón
29 Jan 2020
1const process = require('process'); process.env.CHROME_BIN = 
2require('puppeteer').executablePath();
3
4module.exports = function (config) {   config.set({
5    basePath: '',
6    frameworks: ['jasmine', '@angular-devkit/build-angular'],
7    plugins: [
8      require('karma-jasmine'),
9      require('karma-chrome-launcher'),
10      require('karma-jasmine-html-reporter'),
11      require('karma-coverage-istanbul-reporter'),
12      require('@angular-devkit/build-angular/plugins/karma')
13    ],
14    client: {
15      clearContext: false // leave Jasmine Spec Runner output visible in browser
16    },
17    coverageIstanbulReporter: {
18      dir: require('path').join(__dirname, '../coverage/FeedbackApp'),
19      reports: ['html', 'lcovonly'],
20      fixWebpackSourcePaths: true
21    },
22    reporters: ['progress', 'kjhtml'],
23    port: 9876,
24    colors: true,
25    logLevel: config.LOG_INFO,
26    autoWatch: true,
27    browsers: ['ChromeHeadlessNoSandbox'],
28    customLaunchers: {
29      ChromeHeadlessNoSandbox: {
30        base: 'ChromeHeadless',
31        flags: ['--no-sandbox','--headless','--disable-gpu','--disable-translate','--disable-extensions']
32      }
33    },
34    singleRun: true   }); };
35
queries leading to this page
phantomjs in angularphantomjs in angular