-
Notifications
You must be signed in to change notification settings - Fork 157
New tsconfig loading feature doesn't respect tsconfig extends #495
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
Comments
I found a strange behaviour with tsconfig too. I've added to jest config my globals: {
'vue-jest': {
tsConfig: './tsconfig.spec.json'
}
} |
I can confirm that as well. |
I have also run into this same problem and wound up implementing my own vue-ts-transformer to override the vue-jest default handling for ts script blocks. My version is just using I can see about putting up a PR to make that change upstream. |
* fix(tsconfig): parse extended tsconfigs when transpiling script blocks A change introduced in v28.1.0 in PR #471 unintentionally changed the behavior of the tsconfig parsing such that configs using "extends" were no longer being considered. Fixes: #495 * chore(cache): cache tsconfig parsing to avoid the cost per vue file / interpolated string Co-authored-by: Adam Hines <ahines@factset.com>
Thanks @thebanjomatic @lmiller1990, v29.2.0 solved our issues with tsconfig extends ! |
The new tsconfig loading feature implemented in #471 doesn't properly support extended tsconfig files. For example take the following config for our test files that extends our base config:
tests/tsconfig.json
tsconfig.json
When the tests are run the config that is loaded and passed to the typescript compiler doesn't include any of the options set in the base config even though
tests/tsconfig.json
properly extends it. Note this was working previously before this PR was merged.It looks like this was an issue in the past as well but was fixed and now has appeared again.
#118
#139
The text was updated successfully, but these errors were encountered: