Skip to content

Commit

Permalink
Merge pull request #491 from kulshekhar/fix
Browse files Browse the repository at this point in the history
Use os separator instead of hard-coding it
  • Loading branch information
kulshekhar committed Apr 14, 2018
2 parents b4628f0 + b6ea93d commit 6d24171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-jest",
"version": "22.4.2",
"version": "22.4.3",
"main": "index.js",
"types": "./dist/index.d.ts",
"description": "A preprocessor with sourcemap support to help use Typescript with Jest",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function getStartDir(): string {
// in the directory of the test

const grandparent = path.resolve(__dirname, '..', '..');
if (grandparent.endsWith('/node_modules')) {
if (grandparent.endsWith(`${path.sep}node_modules`)) {
return process.cwd();
}

Expand Down

0 comments on commit 6d24171

Please sign in to comment.