Skip to content
Snippets Groups Projects
Commit c9206c18 authored by wtaisner@man.poznan.pl's avatar wtaisner@man.poznan.pl
Browse files

update karma, remove some redundant packages

parent 0fb989cd
No related branches found
No related tags found
No related merge requests found
...@@ -3,53 +3,49 @@ process.env.CHROME_BIN = puppeteer.executablePath(); ...@@ -3,53 +3,49 @@ process.env.CHROME_BIN = puppeteer.executablePath();
module.exports = function (config) { module.exports = function (config) {
config.set({ config.set({
basePath: '', basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'], frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [ plugins: [
require('karma-jasmine'), require('karma-jasmine'),
require('karma-babel-preprocessor'), require('karma-coverage'),
require('karma-chrome-launcher'), require('karma-chrome-launcher'),
require('karma-webpack'), require('karma-jasmine-html-reporter'),
require('karma-jasmine-html-reporter'), require('@angular-devkit/build-angular/plugins/karma'),
require('karma-coverage-istanbul-reporter'), ],
require('@angular-devkit/build-angular/plugins/karma'), customLaunchers: {
], ChromeHeadless: {
customLaunchers: { base: 'Chrome',
ChromeHeadless: { flags: [
base: 'Chrome', '--headless',
flags: [ '--disable-gpu',
'--headless', // Without a remote debugging port, Google Chrome exits immediately.
'--disable-gpu', '--remote-debugging-port=9222',
// Without a remote debugging port, Google Chrome exits immediately. ],
'--remote-debugging-port=9222', }
], },
} client: {
}, clearContext: false
client:{ },
clearContext: false files: [],
}, preprocessors: {},
files: [ mime: {
'text/x-typescript': ['ts', 'tsx']
], },
preprocessors: {}, coverageReporter: {
mime: { dir: 'coverage',
'text/x-typescript': ['ts','tsx'] reporters: [
}, {type: 'html', subdir: '.'},
coverageIstanbulReporter: { {type: 'lcovonly', subdir: '.', file: 'lcov.info'},
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ], ]
fixWebpackSourcePaths: true, },
thresholds: {
statements: 30 reporters: ['progress'],
} port: 9876,
}, colors: true,
logLevel: config.LOG_WARN,
reporters: ['progress'], autoWatch: false,
port: 9876, browsers: ['Chrome', 'ChromeHeadless'],
colors: true, singleRun: false
logLevel: config.LOG_WARN, }
autoWatch: false,
browsers: ['Chrome', 'ChromeHeadless'],
singleRun: false
}
); );
}; };
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment