Commit b35abed3 authored by Eduardo Sanz García's avatar Eduardo Sanz García
Browse files

test: fix and simplify test configurations

parent f626aba1
Pipeline #2763 passed with stages
in 3 minutes and 33 seconds
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
// Configuration used in test:sr
// Configuration for test
module.exports = function (config) {
config.set({
......
......@@ -11,16 +11,11 @@ module.exports = function (config) {
require('karma-jasmine'),
require('karma-jasmine-html-reporter'),
require('karma-chrome-launcher'),
require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma')
],
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'prod'
},
......
......@@ -7,8 +7,8 @@
"start": "ng serve --aot",
"build": "ng build --prod --aot",
"test": "ng test --config=karma_chrome.conf.js",
"test:sr": "ng test --progress=false",
"test:sr:chromium": "ng test --progress=false --config=karma_chromium.conf.js",
"test:sr": "ng test --code-coverage=true --progress=false",
"test:sr:chromium": "ng test --code-coverage=true --progress=false --config=karma_chromium.conf.js",
"lint": "ng lint --type-check",
"e2e": "ng e2e",
"packagr": "ng-packagr -p ng-package.json"
......
......@@ -43,7 +43,7 @@
/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
// import 'core-js/es7/reflect';
import 'core-js/es7/reflect';
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment