fix(angular): align root karma config when migrating from angular cli to match the one for new workspaces (#9144)
This commit is contained in:
parent
f13ce2b74a
commit
cef4bbd4cf
@ -24,6 +24,9 @@ module.exports = () => {
|
|||||||
},
|
},
|
||||||
clearContext: false, // leave Jasmine Spec Runner output visible in browser
|
clearContext: false, // leave Jasmine Spec Runner output visible in browser
|
||||||
},
|
},
|
||||||
|
jasmineHtmlReporter: {
|
||||||
|
suppressAll: true, // removes the duplicated traces
|
||||||
|
},
|
||||||
coverageReporter: {
|
coverageReporter: {
|
||||||
dir: join(__dirname, './coverage'),
|
dir: join(__dirname, './coverage'),
|
||||||
subdir: '.',
|
subdir: '.',
|
||||||
|
|||||||
@ -12,16 +12,25 @@ module.exports = () => {
|
|||||||
require('karma-jasmine'),
|
require('karma-jasmine'),
|
||||||
require('karma-chrome-launcher'),
|
require('karma-chrome-launcher'),
|
||||||
require('karma-jasmine-html-reporter'),
|
require('karma-jasmine-html-reporter'),
|
||||||
require('karma-coverage-istanbul-reporter'),
|
require('karma-coverage'),
|
||||||
require('@angular-devkit/build-angular/plugins/karma'),
|
require('@angular-devkit/build-angular/plugins/karma'),
|
||||||
],
|
],
|
||||||
client: {
|
client: {
|
||||||
|
jasmine: {
|
||||||
|
// you can add configuration options for Jasmine here
|
||||||
|
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
||||||
|
// for example, you can disable the random execution with `random: false`
|
||||||
|
// or set a specific seed with `seed: 4321`
|
||||||
|
},
|
||||||
clearContext: false, // leave Jasmine Spec Runner output visible in browser
|
clearContext: false, // leave Jasmine Spec Runner output visible in browser
|
||||||
},
|
},
|
||||||
coverageIstanbulReporter: {
|
jasmineHtmlReporter: {
|
||||||
dir: join(__dirname, '../../coverage'),
|
suppressAll: true, // removes the duplicated traces
|
||||||
reports: ['html', 'lcovonly'],
|
},
|
||||||
fixWebpackSourcePaths: true,
|
coverageReporter: {
|
||||||
|
dir: join(__dirname, './coverage'),
|
||||||
|
subdir: '.',
|
||||||
|
reporters: [{ type: 'html' }, { type: 'text-summary' }],
|
||||||
},
|
},
|
||||||
reporters: ['progress', 'kjhtml'],
|
reporters: ['progress', 'kjhtml'],
|
||||||
port: 9876,
|
port: 9876,
|
||||||
@ -823,6 +823,7 @@ function decorateAngularClI(host: Tree) {
|
|||||||
function addFiles(host: Tree) {
|
function addFiles(host: Tree) {
|
||||||
generateFiles(host, joinPathFragments(__dirname, './files/root'), '.', {
|
generateFiles(host, joinPathFragments(__dirname, './files/root'), '.', {
|
||||||
tmpl: '',
|
tmpl: '',
|
||||||
|
dot: '.',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!host.exists('.prettierignore')) {
|
if (!host.exists('.prettierignore')) {
|
||||||
|
|||||||
@ -99,14 +99,8 @@ const IGNORE_MATCHES = {
|
|||||||
workspace: [
|
workspace: [
|
||||||
'tslint',
|
'tslint',
|
||||||
'@angular-devkit/architect',
|
'@angular-devkit/architect',
|
||||||
'@angular-devkit/build-angular',
|
|
||||||
'@angular-devkit/core',
|
'@angular-devkit/core',
|
||||||
'@angular-devkit/schematics',
|
'@angular-devkit/schematics',
|
||||||
'karma',
|
|
||||||
'karma-chrome-launcher',
|
|
||||||
'karma-coverage-istanbul-reporter',
|
|
||||||
'karma-jasmine',
|
|
||||||
'karma-jasmine-html-reporter',
|
|
||||||
'webpack',
|
'webpack',
|
||||||
'webpack-dev-server',
|
'webpack-dev-server',
|
||||||
'@nrwl/cli',
|
'@nrwl/cli',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user