Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vue3-jest): compilation error while passing tsconfig path #446

Merged
merged 2 commits into from
Apr 25, 2022

Conversation

keuby
Copy link
Contributor

@keuby keuby commented Jan 30, 2022

When the tsconfig path is not the default, I need to manually pass in the tsconfig path.Some configurations are shown below:

export default {
  globals: {
    'ts-jest': {
      tsconfig: require.resolve('./tsconfig.jest.json'),
    },
    'vue-jest': {
      tsConfig: require.resolve('./tsconfig.jest.json'),
    },
  },
}

The tsconfig#resolveSync method is called in the code to get the configuration. However, the configuration can't be obtained due to incorrect parameter passing, so it is compiled as JS code, resulting in compilation errors

@lmiller1990 lmiller1990 merged commit 2d1e0cf into vuejs:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants