Skip to content

Commit

Permalink
fix: add startDir to if-clause
Browse files Browse the repository at this point in the history
  • Loading branch information
misantronic committed Oct 9, 2017
1 parent d33d311 commit eed5311
Showing 1 changed file with 1 addition and 1 deletion.
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 === 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 eed5311

Please sign in to comment.