Skip to content

Commit 8a6a8f7

Browse files
committed
fix: test rootDir to handle preset-angular
1 parent 98b2410 commit 8a6a8f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/get-ts-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function findTSConfigPath(
109109
`${jestConfig.rootDir}${sep}`,
110110
);
111111
// ensure the path is resolved
112-
if (!tsConfigFile.startsWith('/')) {
112+
if (!tsConfigFile.startsWith('/') && jestConfig.rootDir) {
113113
tsConfigFile = resolve(jestConfig.rootDir, tsConfigFile);
114114
} else {
115115
tsConfigFile = resolve(tsConfigFile);

0 commit comments

Comments
 (0)