diff --git a/AUTHORS b/AUTHORS index 73a1bafd5b..0a77c283ca 100644 --- a/AUTHORS +++ b/AUTHORS @@ -13,6 +13,7 @@ Chris Sauve Christian Linne Christian Rackerseder Daniel Perez Alvarez +David Schkalee David Sheldrick Emil Persson Eric Anderson diff --git a/package.json b/package.json index 3176ffa925..14a78359b8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/utils.ts b/src/utils.ts index 3e562d7efe..4197ebc2f0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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