File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 3333 * preprocessor, which is needed to be able to debug tests properly in a browser.
3434 */
3535
36+ const { existsSync } = require ( 'node:fs' ) ;
37+
3638if ( ! process . env . CHROMIUM_BIN ) {
37- process . env . CHROMIUM_BIN = require ( 'puppeteer' ) . executablePath ( )
39+ const chrome = require ( 'puppeteer' ) . executablePath ( )
40+ process . env . CHROMIUM_BIN = chrome
3841}
3942
4043const webpack = require ( 'webpack' ) ;
@@ -273,14 +276,19 @@ module.exports = function(config) {
273276 // - PhantomJS
274277 // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
275278 // use PhantomJS_debug for extra local debug
276- browsers : [ 'ChromiumHeadless ' ] ,
279+ browsers : [ 'Chrome_without_sandbox ' ] ,
277280
278281 // you can define custom flags
279282 customLaunchers : {
280283 PhantomJS_debug : {
281284 base : 'PhantomJS' ,
282285 debug : true
283- }
286+ } ,
287+ // fix CI
288+ Chrome_without_sandbox : {
289+ base : 'ChromiumHeadless' ,
290+ flags : [ '--no-sandbox' ] ,
291+ } ,
284292 } ,
285293
286294 // If browser does not capture in given timeout [ms], kill it
You can’t perform that action at this time.
0 commit comments