File tree Expand file tree Collapse file tree 4 files changed +78
-296
lines changed
Expand file tree Collapse file tree 4 files changed +78
-296
lines changed Original file line number Diff line number Diff line change 1+ dist : trusty
2+ addons :
3+ chrome : stable
14language : node_js
25node_js :
36 - stable
@@ -14,7 +17,7 @@ before_install:
1417before_script :
1518 - greenkeeper-lockfile-update
1619script :
17- - yarn run test
20+ - yarn test
1821after_script :
1922 - greenkeeper-lockfile-upload
2023after_success :
Original file line number Diff line number Diff line change 1+ const puppeteer = require ( 'puppeteer' ) ;
2+
13process . env . TEST = true ;
24process . env . NODE_ENV = "test" ;
5+ process . env . CHROME_BIN = puppeteer . executablePath ( ) ;
36
47const webpackConfig = require ( "./webpack.config.js" ) ( { production : false , karma : true } ) ;
58
@@ -65,11 +68,11 @@ module.exports = config => {
6568 } ;
6669
6770 if ( process . env . TRAVIS ) {
68- configuration . browsers . push ( "PhantomJS " ) ;
69- configuration . plugins . push ( "karma-phantomjs -launcher" ) ;
71+ configuration . browsers . push ( "ChromeHeadless " ) ;
72+ configuration . plugins . push ( "karma-chrome -launcher" ) ;
7073 } else {
71- configuration . browsers . push ( "PhantomJS " ) ;
72- configuration . plugins . push ( "karma-phantomjs -launcher" ) ;
74+ configuration . browsers . push ( "ChromeHeadless " ) ;
75+ configuration . plugins . push ( "karma-chrome -launcher" ) ;
7376 }
7477
7578 config . set ( configuration ) ;
Original file line number Diff line number Diff line change 8989 "karma-es6-shim" : " ^1.0.0" ,
9090 "karma-mocha" : " ^1.3.0" ,
9191 "karma-mocha-reporter" : " ^2.2.5" ,
92- "karma-phantomjs-launcher" : " ^1.0.4" ,
9392 "karma-remap-istanbul" : " ^0.6.0" ,
9493 "karma-sinon" : " ^1.0.5" ,
9594 "karma-sinon-chai" : " ^2.0.2" ,
10099 "nyc" : " ^13.1.0" ,
101100 "prettier" : " ^1.15.2" ,
102101 "publish-please" : " ^5.2.0" ,
102+ "puppeteer" : " ^1.10.0" ,
103103 "reflect-metadata" : " ^0.1.12" ,
104104 "remap-istanbul" : " ^0.12.0" ,
105105 "rimraf" : " ^2.6.2" ,
You can’t perform that action at this time.
0 commit comments