-
Notifications
You must be signed in to change notification settings - Fork 669
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
To do before release #246
Comments
I think you have the wrong issue reference for I am interested in writing docs for this! This basically refers to anything using Maybe we can put it under the guides section. |
Yes, I think we should add it to the guides section. That would be great if you could write it 🙂 |
I would like to do this, I will have time after the 19th. Edit: started here https://github.com/lmiller1990/vue-test-utils/blob/add-async-guide/docs/en/guides/testing-async-components.md Also, I think we should add something about what to test. A lot of people have problems, when they are testing things using vue test utils that it shouldn't be used for (like testing other people's components). Not directly related to this library, but I think providing an official library that will become a big part of the ecosystem, some solid guides on how to use it, and not just what it does but what it does not/should not do would be valuable. I gave a presentation last night about vue-test-utils at v-meetup in Tokyo, and talked to a bunch of people, and one of the main feedback points was "better ways to select things, like calendar inputs". I think what people are doing is unit testing components that have child components which wrap and , which I don't think should be the job of vue-test-utils (unless of course you are authoring a input wrapper component). The line between unit tests and integration tests is pretty blurred for a lot of people. |
Yeah I agree, I'll add it to the list |
IMHO, |
@38elements I can see your line of thinking. I feel like some test specific guides, with lots of details, would be great to include with I made PR #282 with a detailed guide about async components, but something more general I think would be great. I'll post in the cookbook repo. Thanks for your input! |
Is it possible to get |
@robcresswell just released |
Would you please update document page? |
Great work @eddyerburgh ! |
Is there a bug on functional components or I'm missing something?
|
Hi lago, please create a separate issue of this with a minimal reproduction
…On 18 Jan 2018 07:41, "Iago ♨️" ***@***.***> wrote:
Is there a bug on functional components or I'm missing something?
<template functional> or <script>export default { functional: true
}</script> doesn't work.
mount.context can only be used when mounting a functional component
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#246 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMlbW2bGBJ5fnZzmpgTmcF6PUnzLJvAGks5tLvWjgaJpZM4Q8Khu>
.
|
Given that the last update on the progress here was almost a year ago, I am interested in the current state of this. @eddyerburgh Is the checklist in the issue description still accurate and are those the only blockers for the 1.0 release? Are there specific tasks that could need help to speed up the release? |
These are the two blockers:
The synchronous bugs will be fixed with a small amount of work after the next Vue version is released. The support for extended components is a major issue, and might require a change to how the library works. Currently we Apart from that there are a few smaller bugs that could be fixed (like #973). I would appreciate help with them, but they aren't blocking from release. |
Thank you @eddyerburgh, much appreciated! 😃 |
I'm now trying to integrate the unit test feature using vue-test-utils into a cli tools.But it was blocking by the issue above because we use typescript and vue-class-component in project. |
@eddyerburgh I really enjoy using vue-test-utils and am looking forward to release! However, I am not sure two blockers causes and solutions so I want to clarify them. Improve support for extended componentsCauseYou mean below.
In my understanding...
Is it correct? SolutionYou are trying to solve this problem by below issue. Fix synchronous bugsCausesync mode of vue-test-utils. However, you mean ...
I am not sure what next Vue version(version 3?) brings. Solutionbelow issue. |
When will be the stable version released? |
Probably when these are fixed https://github.com/vuejs/vue-test-utils/projects/1. Ideally before Vue 3 comes out. We also need to work on Vue 3 compat. Is there a specific feature or bugfix you are waiting for? Although in "beta", all the important features and present and many people are successfully using it in production. |
The problem is that our customers don't trust packages that are in beta as a general policy. I personally think this is a great project, especially since I dont find a simple way to unit test without it. So I have 2 questions:
I don't intend to pressure anything, rather trying to find out what decision to make. |
@telion2 Most programmers and companies generally don't trust beta packages and this generally not a good practice to use beta software in production. |
I'm surprised your customers are looking at the Anyway, I agree. I think we can look at a 1.0 after the PRs are merged.
And call it 1.0. We could say 2.x will be Vue 3 support. Let me ask some other contributors to make sure everyone is on board: @JessicaSachs @afontcu and @dobromir-hristov This reason this was in beta for so long was a variety of reasons:
A lot was learned! I hope we can do a better job for 3.x. That said, I thin this lib is in a good enough place for a 1.0 and has helped us understand how people would like to test their components. 1.0 means no more API changes. 2.x will likely have a slightly different API, since Vue 3 internals changed a bit, and some things don't make much sense (createLocalVue and mocks, since attaching to the prototype will be less common). Anyway, I will get you an answer to this question in the near future (days). |
So looking into them, then the first two PRs only need a Review and the last one needs to upgrade vuetify related stuff. Thank you for the information and your time^^. |
I'm OK with shipping by the way, #1309 looks like has some breaking changes, so I guess we should decide if tackle it before a proper 1.0 release. Thanks for moving this forward! 🙌 |
I can't wait for the release. Thanks for the effort and for creating such a great project. |
I can't gauge how important it is to merge #1309. I never use If it's too breaking, we may just be better abandoning it. I think VTU has had enough breaking changes at this point. |
I think we can omit this from the v1 release. There are two workarounds:
|
Alright, after #1492 let's do v1. I'll follow up on it. |
Hi there again. |
In VTU next here we made some changes to the API:
As opposed to things like I'd like to backport, or at least add deprecation warnings for these features before v1. I plan to do that this week sometime.
The updated VTU next is here. If you are interested in making these changes, feel free to do so, and we can get things moving more quickly. Not strictly required for v1, but I think it will help people migrating to Vue 3. |
Ok, once this RFC is merged in I will add deprecation warnings and release v1. |
Looks like this issue can finally be closed! @lmiller1990 you wrote the first comment back in 2017 – I think you should be the one closing it 😉 |
Great, closing! |
Hi guys, vue-test-utils has been in beta for a couple months now, and the feedback we've got has been really helpful.
There are a few things left to do before we release 1.0.0:
Add deprecation notice tohasClass
,hasAttribute
, andhasProp
, in favor ofclasses
,attributes
, andprops
Fix bug with keyed transitionsVue.nextTick()
required with transitions. #52Add docs for testing components that have asynchronous calls add section to docs on testing components that include promises #151Add support for inheritAttrs Attr inheritance and InheritAttrs/InheritListeners #146Add support for testing scoped slots Test slot scope #156Improve support for vue.extends findAll with Vue extended component causing errors #248Improve find to find Vue components without namesHandle functional components in findCan't find functional component #296Add setChecked, setValue, and setSelected methodsAdd setChecked and setValue methods #530If anyone has any additional items they think should be added to the list, leave a comment 🙂
The text was updated successfully, but these errors were encountered: