File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ const fs = require('fs');
4
4
const mkdirp = require ( 'mkdirp' ) ;
5
5
const path = require ( 'path' ) ;
6
6
const config = require ( './packages/core-js-builder/config' ) ;
7
+
8
+ process . env . CHROME_BIN = require ( 'puppeteer' ) . executablePath ( ) ;
9
+
7
10
module . exports = grunt => {
8
11
grunt . loadNpmTasks ( 'grunt-contrib-clean' ) ;
9
12
grunt . loadNpmTasks ( 'grunt-contrib-copy' ) ;
@@ -117,7 +120,13 @@ module.exports = grunt => {
117
120
options : {
118
121
frameworks : [ 'qunit' ] ,
119
122
basePath : '.' ,
120
- browsers : [ 'PhantomJS' ] ,
123
+ browsers : [ 'HeadlessChrome' , 'PhantomJS' ] ,
124
+ customLaunchers : {
125
+ HeadlessChrome : {
126
+ base : 'ChromeHeadless' ,
127
+ flags : [ '--no-sandbox' , '--disable-setuid-sandbox' ] ,
128
+ } ,
129
+ } ,
121
130
singleRun : true ,
122
131
} ,
123
132
tests : {
Original file line number Diff line number Diff line change 32
32
"grunt-karma" : " ^3.0.0" ,
33
33
"grunt-webpack" : " ^3.1.3" ,
34
34
"karma" : " ^3.1.1" ,
35
+ "karma-chrome-launcher" : " ^2.2.0" ,
35
36
"karma-phantomjs-launcher" : " 1.0.x" ,
36
37
"karma-qunit" : " ^2.1.0" ,
37
38
"lerna" : " 2.11.0" ,
38
39
"mkdirp" : " ^0.5.1" ,
39
40
"moon-unit" : " ^0.2.2" ,
40
41
"phantomjs-prebuilt" : " 2.1.x" ,
41
42
"promises-aplus-tests" : " ^2.1.2" ,
43
+ "puppeteer" : " ^1.10.0" ,
42
44
"qunit" : " 2.8.x" ,
43
45
"temp" : " ^0.8.3" ,
44
46
"webpack" : " ^4.25.1"
You can’t perform that action at this time.
0 commit comments