11'use strict' ;
2- // Comment the next two lines if you want to run with Chrome instead of Chromium
3- const puppeteer = require ( 'puppeteer' ) ;
4- process . env . CHROME_BIN = puppeteer . executablePath ( ) ;
2+ if ( ! process . env . CHROME_BIN ) {
3+ process . env . CHROME_BIN = require ( 'puppeteer' ) . executablePath ( ) ;
4+ }
55
66const NodePolyfillPlugin = require ( 'node-polyfill-webpack-plugin' ) ;
77
@@ -17,9 +17,8 @@ module.exports = {
1717 // Run on Chrome Headless
1818 customLaunchers : {
1919 ChromeHeadlessNoSandbox : {
20- base : 'ChromeHeadless' ,
21- // Flags required to run in ubuntu-22.04 or above (https://chromium.googlesource.com/chromium/src/+/master/docs/linux/suid_sandbox_development.md)
22- flags : [ '--no-sandbox' , '--disable-setuid-sandbox' ]
20+ base : 'Chrome' ,
21+ flags : [ '--headless=new' , '--no-sandbox' , '--disable-setuid-sandbox' , '--disable-gpu' ]
2322 }
2423 } ,
2524 browsers : [ 'ChromeHeadlessNoSandbox' ] ,
@@ -29,21 +28,7 @@ module.exports = {
2928 // Uncomment to run a particular UT:
3029 // '**/listeners/__tests__/browser.spec.js',
3130 // Run browser UTs. Commons and Node UTs run with `test-node` npm script
32- '*/**/__tests__/**/browser.spec.js' ,
33- {
34- pattern : 'engine/__tests__/engine/mocks/murmur3*.csv' ,
35- watched : false ,
36- included : false ,
37- served : true ,
38- nocache : true
39- } ,
40- {
41- pattern : 'engine/__tests__/matchers/mocks/regex.txt' ,
42- watched : false ,
43- included : false ,
44- served : true ,
45- nocache : true
46- }
31+ '*/**/__tests__/**/browser.spec.js'
4732 ] ,
4833
4934 // list of files / patterns to exclude
0 commit comments