-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Unit test doesn't support typescript #921
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
Reason: This template is not designed with typescript in mind. |
|
We will do a separate template for typescript towards the end of the year. This one here will not explicitly support it. However, I know a couple of people who use this template with type script and vue-vlsss-component, and don't have any problems, so I can't tell where your rpoblem is coming from. What I can do is make an educated guess: are you using any of the following for your project :
Those are known to interfere with web packs default way of observing file changes. The solution is usually to switch to polling (#946) In phpstorm, I usually have to turn off some weird save protect feature. |
@LinusBorg I'm having the same issue with a fresh project using the webpack template. Here's the result of
After adding
This is my
The only TypeScript code I've added is in
|
@ffxsam - You've probably already soled this but for anyone stumbling across this issue, a good template for Nuxt is here: This article is good too: |
Yep, no longer an issue with Vue CLI 3. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
I use vue-componet-class in project, it works well.
But unit test can not watch and cannot report coverage.
That's really very bad~
Is there any good suggestion or solution?
The text was updated successfully, but these errors were encountered: