Skip to content

Commit caaca45

Browse files
committed
chore(karma.conf): add custom chrome launcher with --disable-search-engine-choice-screen flag
1 parent b25511a commit caaca45

File tree

4 files changed

+30
-15
lines changed

4 files changed

+30
-15
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
---
44

5+
#### `5.2.x`
6+
7+
- chore(karma.conf): add custom chrome launcher with `--disable-search-engine-choice-screen` flag
8+
9+
---
10+
511
#### `5.2.12`
612

713
- chore(dependencies): update

projects/coreui-angular-chartjs/karma.conf.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,20 @@ module.exports = function (config) {
2727
coverageReporter: {
2828
dir: require('path').join(__dirname, '../../coverage/coreui-angular-chartjs'),
2929
subdir: '.',
30-
reporters: [
31-
{ type: 'html' },
32-
{ type: 'text-summary' }
33-
]
30+
reporters: [{ type: 'html' }, { type: 'text-summary' }]
3431
},
3532
reporters: ['progress', 'kjhtml'],
3633
port: 9876,
3734
colors: true,
3835
logLevel: config.LOG_INFO,
3936
autoWatch: true,
40-
browsers: ['Chrome'],
37+
browsers: ['Chrome_Custom'],
38+
customLaunchers: {
39+
Chrome_Custom: {
40+
base: 'Chrome',
41+
flags: ['--disable-search-engine-choice-screen']
42+
}
43+
},
4144
singleRun: false,
4245
restartOnFileChange: true
4346
});

projects/coreui-angular/karma.conf.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,20 @@ module.exports = function (config) {
2727
coverageReporter: {
2828
dir: require('path').join(__dirname, '../../coverage/coreui-angular'),
2929
subdir: '.',
30-
reporters: [
31-
{ type: 'html' },
32-
{ type: 'text-summary' }
33-
]
30+
reporters: [{ type: 'html' }, { type: 'text-summary' }]
3431
},
3532
reporters: ['progress', 'kjhtml'],
3633
port: 9876,
3734
colors: true,
3835
logLevel: config.LOG_INFO,
3936
autoWatch: true,
40-
browsers: ['Chrome'],
37+
browsers: ['Chrome_Custom'],
38+
customLaunchers: {
39+
Chrome_Custom: {
40+
base: 'Chrome',
41+
flags: ['--disable-search-engine-choice-screen']
42+
}
43+
},
4144
singleRun: false,
4245
restartOnFileChange: true
4346
});

projects/coreui-icons-angular/karma.conf.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,20 @@ module.exports = function (config) {
2727
coverageReporter: {
2828
dir: require('path').join(__dirname, '../../coverage/coreui-icons-angular'),
2929
subdir: '.',
30-
reporters: [
31-
{ type: 'html' },
32-
{ type: 'text-summary' }
33-
]
30+
reporters: [{ type: 'html' }, { type: 'text-summary' }]
3431
},
3532
reporters: ['progress', 'kjhtml'],
3633
port: 9876,
3734
colors: true,
3835
logLevel: config.LOG_INFO,
3936
autoWatch: true,
40-
browsers: ['Chrome'],
37+
browsers: ['Chrome_Custom'],
38+
customLaunchers: {
39+
Chrome_Custom: {
40+
base: 'Chrome',
41+
flags: ['--disable-search-engine-choice-screen']
42+
}
43+
},
4144
singleRun: false,
4245
restartOnFileChange: true
4346
});

0 commit comments

Comments
 (0)