Skip to content

Commit

Permalink
Merge pull request kulshekhar#344 from misantronic/master
Browse files Browse the repository at this point in the history
fix: add startDir to if-clause

Closes kulshekhar#343
  • Loading branch information
kulshekhar committed Oct 10, 2017
2 parents d33d311 + 4d32d51 commit 7b15180
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Chris Sauve <chrismsauve@gmail.com>
Christian Linne <ShadowVampire@web.de>
Christian Rackerseder <git@echooff.de>
Daniel Perez Alvarez <unindented@gmail.com>
David Schkalee <david.schkalee@magicline.de>
David Sheldrick <djsheldrick@gmail.com>
Emil Persson <emil.n.persson@gmail.com>
Eric Anderson <e@ericlanderson.com>
Expand Down
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": "21.1.1",
"version": "21.1.2",
"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 @@ -204,7 +204,7 @@ export function getTSConfig(globals, collectCoverage: boolean = false) {

config = readCompilerOptions(configPath);

if (configFileName === 'tsconfig.json') {
if (configFileName === path.join(getStartDir(), 'tsconfig.json')) {
// hardcode module to 'commonjs' in case the config is being loaded
// from the default tsconfig file. This is to ensure that coverage
// works well. If there's a need to override, it can be done using
Expand Down

0 comments on commit 7b15180

Please sign in to comment.