Skip to content

Commit

Permalink
fix: test rootDir to handle preset-angular
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Aug 3, 2018
1 parent 98b2410 commit 8a6a8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/get-ts-config.ts
Expand Up @@ -109,7 +109,7 @@ function findTSConfigPath(
`${jestConfig.rootDir}${sep}`,
);
// ensure the path is resolved
if (!tsConfigFile.startsWith('/')) {
if (!tsConfigFile.startsWith('/') && jestConfig.rootDir) {
tsConfigFile = resolve(jestConfig.rootDir, tsConfigFile);
} else {
tsConfigFile = resolve(tsConfigFile);
Expand Down

0 comments on commit 8a6a8f7

Please sign in to comment.