File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const iLibSourceMaps = require('istanbul-lib-source-maps');
1212const iLibReport = require ( 'istanbul-lib-report' ) ;
1313const iReports = require ( 'istanbul-reports' ) ;
1414
15- const REPO_PATH = toUpperDriveLetter ( path . join ( __dirname , '..' ) ) ;
15+ const REPO_PATH = toUpperDriveLetter ( path . join ( __dirname , '../../ ' ) ) ;
1616
1717exports . initialize = function ( loaderConfig ) {
1818 const instrumenter = iLibInstrument . createInstrumenter ( ) ;
@@ -47,7 +47,7 @@ exports.createReport = function (isSingle) {
4747 transformed . data = newData ;
4848
4949 const context = iLibReport . createContext ( {
50- dir : path . join ( __dirname , `../ .build/coverage${ isSingle ? '-single' : '' } ` ) ,
50+ dir : path . join ( REPO_PATH , `.build/coverage${ isSingle ? '-single' : '' } ` ) ,
5151 coverageMap : transformed
5252 } ) ;
5353 const tree = context . getTree ( 'flat' ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const path = require('path');
1111const glob = require ( 'glob' ) ;
1212const util = require ( 'util' ) ;
1313const bootstrap = require ( '../../../src/bootstrap' ) ;
14- const coverage = require ( '../../ coverage' ) ;
14+ const coverage = require ( '../coverage' ) ;
1515
1616// Disabled custom inspect. See #38847
1717if ( util . inspect && util . inspect [ 'defaultOptions' ] ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const path = require('path');
1111const glob = require ( 'glob' ) ;
1212const jsdom = require ( 'jsdom-no-contextify' ) ;
1313const TEST_GLOB = '**/test/**/*.test.js' ;
14- const coverage = require ( '../../ coverage' ) ;
14+ const coverage = require ( '../coverage' ) ;
1515
1616const optimist = require ( 'optimist' )
1717 . usage ( 'Run the Code tests. All mocha options apply.' )
You can’t perform that action at this time.
0 commit comments