Skip to content

Commit

Permalink
fix(vue3-jest): compilation error while passing tsconfig path (#446)
Browse files Browse the repository at this point in the history
Co-authored-by: knight.chen <knightch@knx.com.cn>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
  • Loading branch information
3 people committed Apr 25, 2022
1 parent 328427c commit 2d1e0cf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/vue3-jest/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@ const getBabelOptions = function loadBabelOptions(filename, options = {}) {
}

const getTsJestConfig = function getTsJestConfig(config) {
const tsConfigPath = path.resolve(
process.cwd(),
getVueJestConfig(config).tsConfig || ''
)
const isUsingTs = resolveTsConfigSync(tsConfigPath)
const tsConfigPath = getVueJestConfig(config).tsConfig || ''
const isUsingTs = resolveTsConfigSync(process.cwd(), tsConfigPath)
if (!isUsingTs) {
return null
}
Expand Down

0 comments on commit 2d1e0cf

Please sign in to comment.