We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b2410 commit 8a6a8f7Copy full SHA for 8a6a8f7
1 file changed
src/utils/get-ts-config.ts
@@ -109,7 +109,7 @@ function findTSConfigPath(
109
`${jestConfig.rootDir}${sep}`,
110
);
111
// ensure the path is resolved
112
- if (!tsConfigFile.startsWith('/')) {
+ if (!tsConfigFile.startsWith('/') && jestConfig.rootDir) {
113
tsConfigFile = resolve(jestConfig.rootDir, tsConfigFile);
114
} else {
115
tsConfigFile = resolve(tsConfigFile);
0 commit comments