You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are working on some documentation to help people migrate. At this point you will have better luck trying this out with a brand new Vue 3 app, as opposed to upgrading an existing Vue 2 app. Feedback and bug reports are welcome!
12
+
We are working on [some documentation to help people migrate](https://vue-test-utils.vuejs.org/v2/guide/migration.html).
13
+
14
+
At this point you will have better luck trying this out with a brand new Vue 3 app, as opposed to upgrading an existing Vue 2 app. Feedback and bug reports are welcome!
13
15
14
16
## Working with `.vue` files
15
17
@@ -19,29 +21,27 @@ If you don't want to configure things, you can download a repository with Vue 3,
19
21
20
22
## Docs
21
23
22
-
Docs are located in [this repo](https://github.com/vuejs/vue-test-utils-next-docs). Read them [here](https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html). They are in a separate repository because running Vuepress alongside a repo with Vue 3 causes conflicts - Vuepress expects to be running against Vue 2. This seems like the most simple solution for now.
24
+
Docs are located in [this repo](https://github.com/vuejs/vue-test-utils-next-docs). Read them [here](https://vue-test-utils.vuejs.org/v2/). They are in a separate repository because running Vuepress alongside a repo with Vue 3 causes conflicts - Vuepress expects to be running against Vue 2. This seems like the most simple solution for now.
23
25
24
26
## Development
25
27
26
28
It's a pretty small codebase at the moment. Get started by running `yarn install`. You can run the tests with `yarn test`. That's it!
27
29
28
-
There is a lot of work to do. See issues for some basic TODOs, or the table at the bottom of this page.
30
+
There is still some work left to do. See issues for some basic TODOs, or the table at the bottom of this page.
29
31
30
32
## What works?
31
33
32
-
See the [docs](https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html). Most basic DOM interactions work. Advanced features like `shallowMount` and `stubs` are a work in progress.
34
+
See the [docs](https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html).
33
35
34
36
## Contributing
35
37
36
-
This is still very much alpha - if you want to add a feature, have a hack or ping someone in Discord to chat, or check out the issues and project board.
37
-
38
-
## Where is shallowMount
38
+
This is still quite alpha, but we plan on moving to RC sooner than later. If you want to add a feature, have a hack or ping someone in Discord to chat, or check out the issues and project board.
39
39
40
-
It's coming soon. We are working on it. Stay tuned!
40
+
There's also some [work left to do in docs](https://github.com/vuejs/vue-test-utils-next-docs/issues).
41
41
42
42
## Comparsion with Vue Test Utils beta (targeting Vue 2)
43
43
44
-
This is table for those coming from VTU beta, comparing the two APIs. A lot of things are still a work in progress.
44
+
This is table for those coming from VTU 1, comparing the two APIs. Some things are still a work in progress.
45
45
46
46
- ✅ - implemented
47
47
- ❌ - not yet implemented
@@ -90,13 +90,13 @@ props | ✅
90
90
setData | ✅ |
91
91
destroy | ✅ | renamed to `unmount` to match Vue 3 lifecycle hook name.
92
92
props | ✅
93
+
isVisible | ✅
93
94
contains | ⚰️| use `find`
94
95
emittedByOrder | ⚰️ | use `emitted`
95
96
setSelected | ⚰️ | now part of `setValue`
96
97
setChecked | ⚰️| now part of `setValue`
97
98
is | ⚰️
98
99
isEmpty | ⚰️ | use matchers such as [this](https://github.com/testing-library/jest-dom#tobeempty)
99
-
isVisible | ⚰️ | use matchers such as [this](https://github.com/testing-library/jest-dom#tobevisible)
0 commit comments