Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cabcaee

Browse files
author
John Josef
committedSep 20, 2018
removed phantomjs, added chrome headless for karma runner
1 parent 0177664 commit cabcaee

File tree

4 files changed

+5551
-16
lines changed

4 files changed

+5551
-16
lines changed
 

‎karma.conf.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ module.exports = function(config) {
1717
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
1818
frameworks: ['mocha'],
1919

20+
// plugins
21+
plugins: ['karma-mocha', 'karma-webpack', 'karma-chrome-launcher'],
22+
2023

2124
// list of files / patterns to load in the browser
2225
//
@@ -94,6 +97,18 @@ module.exports = function(config) {
9497
// start these browsers
9598
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
9699
//browsers: ['PhantomJS'],
100+
browsers: ['ChromeNoSecurity'],
101+
customLaunchers: {
102+
ChromeNoSecurity: {
103+
base: 'ChromeHeadless',
104+
flags: [
105+
'--no-sandbox',
106+
'--disable-web-security',
107+
'--disable-extensions'
108+
]
109+
}
110+
},
111+
/*
97112
browsers: ['PhantomJS_custom'],
98113
customLaunchers: {
99114
'PhantomJS_custom': {
@@ -106,7 +121,7 @@ module.exports = function(config) {
106121
}
107122
}
108123
},
109-
124+
*/
110125
// Continuous Integration mode
111126
// if true, Karma captures browsers, runs the tests and exits
112127
singleRun: false

0 commit comments

Comments
 (0)
This repository has been archived.