Skip to content

Commit 2d1e0cf

Browse files
keubyknight.chenlmiller1990
authored
fix(vue3-jest): compilation error while passing tsconfig path (#446)
Co-authored-by: knight.chen <[email protected]> Co-authored-by: Lachlan Miller <[email protected]>
1 parent 328427c commit 2d1e0cf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/vue3-jest/lib/utils.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,8 @@ const getBabelOptions = function loadBabelOptions(filename, options = {}) {
6969
}
7070

7171
const getTsJestConfig = function getTsJestConfig(config) {
72-
const tsConfigPath = path.resolve(
73-
process.cwd(),
74-
getVueJestConfig(config).tsConfig || ''
75-
)
76-
const isUsingTs = resolveTsConfigSync(tsConfigPath)
72+
const tsConfigPath = getVueJestConfig(config).tsConfig || ''
73+
const isUsingTs = resolveTsConfigSync(process.cwd(), tsConfigPath)
7774
if (!isUsingTs) {
7875
return null
7976
}

0 commit comments

Comments
 (0)