Skip to content

Commit e28a67b

Browse files
author
knight.chen
committed
fix(vue3-jest): compilation error while passing tsconfig path
1 parent 6edfa9c commit e28a67b

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)