-
Notifications
You must be signed in to change notification settings - Fork 156
TSConfig defaults is a dead code path #84
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
Alternatively, it looks like they also provide |
Thanks for the bug report. Would you like to make a PR? |
dcherman
added a commit
to dcherman/vue-jest
that referenced
this issue
Apr 20, 2018
@eddyerburgh Yep, already done. Just had to write some tests / refactor the code a bit to do so. |
eddyerburgh
pushed a commit
that referenced
this issue
Apr 20, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default tsconfig here
vue-jest/lib/compilers/typescript-compiler.js
Lines 8 to 30 in 9cef21f
Will never be hit since
loadSync
provides an empty set of defaults if notsconfig.json
is foundhttps://github.com/TypeStrong/tsconfig/blob/5281eafd459a574343bab1bfb8d2ec004cd07355/src/tsconfig.ts#L142-L148
Which means this condition is never falsy in any scenario
vue-jest/lib/compilers/typescript-compiler.js
Lines 39 to 43 in 9cef21f
We should probably swap that out for
resolveSync
to see if we would have found atsconfig.json
before attempting to load it if we want these defaults to be used.The text was updated successfully, but these errors were encountered: