From eed531182e6d53fa7c71b377cab1f613be59cbee Mon Sep 17 00:00:00 2001 From: David Schkalee Date: Mon, 9 Oct 2017 17:15:09 +0200 Subject: [PATCH] fix: add startDir to if-clause --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 3e562d7efe..21a5e02957 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 === 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