Skip to content

Commit

Permalink
windows slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 20, 2021
1 parent 11f1edb commit 3f00726
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jest-runtime/src/index.ts
Expand Up @@ -22,6 +22,7 @@ import {parse as parseCjs} from 'cjs-module-lexer';
import {CoverageInstrumenter, V8Coverage} from 'collect-v8-coverage';
import execa = require('execa');
import * as fs from 'graceful-fs';
import slash = require('slash');
import stripBOM = require('strip-bom');
import type {
Jest,
Expand Down Expand Up @@ -2004,7 +2005,7 @@ export default class Runtime {

private _logFormattedReferenceError(errorMessage: string) {
const testPath = this._testPath
? ` From ${path.relative(this._config.rootDir, this._testPath)}.`
? ` From ${slash(path.relative(this._config.rootDir, this._testPath))}.`
: '';
const originalStack = new ReferenceError(`${errorMessage}${testPath}`)
.stack!.split('\n')
Expand Down

0 comments on commit 3f00726

Please sign in to comment.