-
Notifications
You must be signed in to change notification settings - Fork 668
DOC needs update #1566
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
Hi! Looks like |
English version doc mark |
Yeah, that's true. We should replace those examples using deprecated methods. For example: https://vue-test-utils.vuejs.org/guides/#testing-single-file-components-with-jest
If you use vue/cli + preset for unit testing, then you are good to go. If you are not and want to add config to an existing project, I assume Can you spot any big differences between the |
My English not that good, so
when I solve my problem, I'll try, and I can contact 2, babel config you means there is no need to change my babel config, just use vue-cli generated? here is the log :
|
Keeping translations up to date is a VERY difficult problem. Has anyone found a good solution to this? I know the Vuejs Japan user group get a notification in slack every time the EN core docs are updated and fix the JP ones almost immediately. This is probably one of the reasons Vue is huge in Japan - good, official up oto date docs (no JP version for React docs, for example). This only works because they have a few dedicated docs people. If anyone is interesting in owning and of our translations, please speak up and we can look into something like this. |
how about crowdin ? |
Interesting - have you used this? Was is useful? I'll investigate. |
I used to translate about 10 pages of |
so, anyone helps me with the babel config? keep both those give error i post above help me please! |
I am not super familiar with vue-cli. Can you just try merging them?
Give this a try. Or you can try making a new project using vue-cli, then choose "jest" for testing, and it should give you one that works out of the box. |
Thanks, this config works. (I think I get some errors may caused by webstorm with WSL2, so i create a new project just on Windows ) can you help me with that? if this example works, I think if we put this repository in the doc, will helps newbee like me a lot, do you think so? |
This should all work "out of the box" if you create a new project using Regarding coverage, this is going to depend on the test runner. Is this jest or mocha? Most likely we need to investigate |
I mean add a link. I use |
What I mean if if you run Maybe I am misunderstanding something. |
Hi everyone, the Chinese translation could be synced through these 2 PRs #1568 and #1573 . And I will keep checking the docs update. Also I think crowdin probably is an option. But the current workflow is fine for myself. And imo this move needs more discussion in the perspective of all languages, not just for Thanks. |
@lmiller1990 I create vue project with default, and try to add jest test manully. It seems create vue app with test suit is a better idea. Thanks. But the coverage still blank. I will not foucs on get coverage correct, but if you get this done, notify me, thanks. |
What problem does this feature solve?
1, document confits
use
@vue/cli
create a project, it contains ababel.config.js
filedoc https://vue-test-utils.vuejs.org/zh/guides/#%E7%94%A8-jest-%E6%B5%8B%E8%AF%95%E5%8D%95%E6%96%87%E4%BB%B6%E7%BB%84%E4%BB%B6 line above babel config :
how to merge those config?
2, document needs update
code in https://vue-test-utils.vuejs.org/zh/guides/#%E7%94%A8-jest-%E6%B5%8B%E8%AF%95%E5%8D%95%E6%96%87%E4%BB%B6%E7%BB%84%E4%BB%B6 give an error in console and doc API not mark this as deprecated.
What does the proposed API look like?
no api
The text was updated successfully, but these errors were encountered: