-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Jest Unit Test SyntaxError: Unexpected token import #5395
Comments
This is a problem with your test setup, it has nothing to do with vuetify. |
@KaelWD Well it worked before 1.3.0 |
I'm not sure how it could have worked, |
@johnleider I know. Before that I used
Which in any case it still works fine like that. It just doesn't work with |
You need to provide a reproduction environment then, because it looks to me like babel isn't configured correctly. |
@KaelWD Thanks I will do that |
https://github.com/JeremyWalters/vue-jest-test-not-working Just run There is another trivial issue on this branch https://github.com/JeremyWalters/vue-jest-test-not-working/tree/types-error Thank you in making time for this, I really appreciate all vuetifies work . |
You have several problems in that repo:
See vuetifyjs/vue-cli-plugins#9 and vuetifyjs/vue-cli-plugins#43, we don't yet modify anything for unit tests or typescript. |
@KaelWD Thank you so much for all your effort, I really appreciate it a lot. Thanks so much for the changes you made. Thanks for everything you do for the community. |
Versions and Environment
Vuetify: 1.3.0
Vue: 2.5.17
OS: Windows 10
Previously worked in:
Vuetify: 1.2.10
Vue: 2.5.17
Steps to reproduce
Vue Create (typescript/Babel/Jest)
Vue Add vuetify (default)
Create jest test that involves any vuetify component
Expected Behavior
All my jest test should run
Actual Behavior
Get an error before test start to run:
Additional Comments:
It is probable a babel transform issue with jest.
The text was updated successfully, but these errors were encountered: