File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/jest-runtime/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {parse as parseCjs} from 'cjs-module-lexer';
2222import { CoverageInstrumenter , V8Coverage } from 'collect-v8-coverage' ;
2323import execa = require( 'execa' ) ;
2424import * as fs from 'graceful-fs' ;
25+ import slash = require( 'slash' ) ;
2526import stripBOM = require( 'strip-bom' ) ;
2627import type {
2728 Jest ,
@@ -2004,7 +2005,7 @@ export default class Runtime {
20042005
20052006 private _logFormattedReferenceError ( errorMessage : string ) {
20062007 const testPath = this . _testPath
2007- ? ` From ${ path . relative ( this . _config . rootDir , this . _testPath ) } .`
2008+ ? ` From ${ slash ( path . relative ( this . _config . rootDir , this . _testPath ) ) } .`
20082009 : '' ;
20092010 const originalStack = new ReferenceError ( `${ errorMessage } ${ testPath } ` )
20102011 . stack ! . split ( '\n' )
You can’t perform that action at this time.
0 commit comments