-
Notifications
You must be signed in to change notification settings - Fork 157
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
Not using tsconfig #8
Comments
Thanks for taking the time to stab the issue.
Not sure why it's calling babel. |
I had a similar problem and was able to fix it by editing - return compileBabel(res.outputText, res.sourceMapText)
+ return compileBabel(res.outputText, JSON.parse(res.sourceMapText)) |
I added your fix @cgodley. The only way I can get TS compilation working is by passing it through babel before returning it. I'm not a TS user, so I'm not sure if this is common or not. If anyone would like to have a go at getting TS compilation working without babel, please do. There are tests to make sure children are compiled correctly. |
I'm really lacking time currently to dig anything deeper. Using |
This should be fixed with vuejs/vue-test-utils#115 I have also noticed that there is some issues with newer versions of jest where things where auto mocked. Here is my configuration for further reference...
|
I took the time to update and test. It seems to be working fine for me. |
Typescript was not using a tsconfig
Original issue - vuejs/vue-test-utils#47
This should be fixed in jest-vue 0.6.0.
The text was updated successfully, but these errors were encountered: