From 2d1e0cfd8a123526331aa7844a857d8f41d08321 Mon Sep 17 00:00:00 2001 From: keuby <32365592+keuby@users.noreply.github.com> Date: Mon, 25 Apr 2022 12:24:30 +0800 Subject: [PATCH] fix(vue3-jest): compilation error while passing tsconfig path (#446) Co-authored-by: knight.chen Co-authored-by: Lachlan Miller --- packages/vue3-jest/lib/utils.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/vue3-jest/lib/utils.js b/packages/vue3-jest/lib/utils.js index 8ac12ee1..feeab317 100644 --- a/packages/vue3-jest/lib/utils.js +++ b/packages/vue3-jest/lib/utils.js @@ -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 }