File tree Expand file tree Collapse file tree 3 files changed +286
-6
lines changed Expand file tree Collapse file tree 3 files changed +286
-6
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable import/no-commonjs */
22
33const commonjs = require ( '@rollup/plugin-commonjs' ) ;
4+ const istanbul = require ( 'rollup-plugin-istanbul' ) ;
45const json = require ( '@rollup/plugin-json' ) ;
56const resolve = require ( '@rollup/plugin-node-resolve' ) . default ;
67const builds = require ( './rollup.config' ) ;
78const yargs = require ( 'yargs' ) ;
89
9-
1010module . exports = function ( karma ) {
1111 const args = yargs
1212 . option ( 'verbose' , { default : false } )
@@ -101,12 +101,8 @@ module.exports = function(karma) {
101101 browserDisconnectTolerance : 3
102102 } ) ;
103103
104- // https://swizec.com/blog/how-to-run-javascript-tests-in-chrome-on-travis/swizec/6647
105- if ( process . env . TRAVIS ) {
106- karma . customLaunchers . chrome . flags . push ( '--no-sandbox' ) ;
107- }
108-
109104 if ( args . coverage ) {
105+ build . plugins . push ( istanbul ( ) ) ;
110106 karma . reporters . push ( 'coverage' ) ;
111107 karma . coverageReporter = {
112108 dir : 'coverage/' ,
You can’t perform that action at this time.
0 commit comments