Skip to content

Commit eed5311

Browse files
committed
fix: add startDir to if-clause
1 parent d33d311 commit eed5311

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export function getTSConfig(globals, collectCoverage: boolean = false) {
204204

205205
config = readCompilerOptions(configPath);
206206

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

0 commit comments

Comments
 (0)