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
Get started with the [documentation](https://vue-test-utils.vuejs.org/v2/).
11
+
10
12
## Coming from Vue 2 + Vue Test Utils?
11
13
12
14
We are working on [some documentation to help people migrate](https://vue-test-utils.vuejs.org/v2/guide/migration.html).
@@ -19,27 +21,23 @@ There is [`vue-jest`](https://github.com/vuejs/vue-jest) for loading `.vue` file
19
21
20
22
If you don't want to configure things, you can download a repository with Vue 3, `@vue/test-utils@next`, `vue-jest@next` and TypeScript configured [here](https://github.com/lmiller1990/vtu-next-demo).
21
23
22
-
## Docs
24
+
## What works?
23
25
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.
26
+
See the [docs](https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html).
25
27
26
28
## Development
27
29
28
30
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!
29
31
30
32
There is still some work left to do. See issues for some basic TODOs, or the table at the bottom of this page.
31
33
32
-
## What works?
33
-
34
-
See the [docs](https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html).
35
-
36
34
## Contributing
37
35
38
36
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
37
40
38
There's also some [work left to do in docs](https://github.com/vuejs/vue-test-utils-next-docs/issues).
41
39
42
-
## Comparsion with Vue Test Utils beta (targeting Vue 2)
40
+
## Comparison with Vue Test Utils beta (targeting Vue 2)
43
41
44
42
This is table for those coming from VTU 1, comparing the two APIs. Some things are still a work in progress.
45
43
@@ -49,54 +47,53 @@ This is table for those coming from VTU 1, comparing the two APIs. Some things a
49
47
50
48
### Mounting Options
51
49
52
-
| option | status | notes |
53
-
|---------|-------|------|
54
-
data | ✅
55
-
slots | ✅ | has not been tested vigorously. Please try it out.
56
-
mocks | ✅ | nested in [`global`](https://vuejs.github.io/vue-test-utils-next-docs/api/#global)
57
-
propsData | ✅ | now called `props`
58
-
provide | ✅ | nested in [`global`](https://vuejs.github.io/vue-test-utils-next-docs/api/#global)
59
-
mixins | ✅ | (new!) nested in [`global`](https://vuejs.github.io/vue-test-utils-next-docs/api/#global)
60
-
plugins | ✅ | (new!) nested in [`global`](https://vuejs.github.io/vue-test-utils-next-docs/api/#global)
61
-
component | ✅ | (new!) nested in [`global`](https://vuejs.github.io/vue-test-utils-next-docs/api/#global)
62
-
directives | ✅ | (new!) nested in [`global`](https://vuejs.github.io/vue-test-utils-next-docs/api/#global)
63
-
stubs | ✅
64
-
attachToDocument |✅| renamed `attachTo`. See [here](https://github.com/vuejs/vue-test-utils/pull/1492)
65
-
attrs | ✅
66
-
scopedSlots | ⚰️ | scopedSlots are merged with slots in Vue 3
67
-
context | ⚰️ | different from Vue 2, does not make sense anymore.
68
-
localVue | ⚰️ | may not make sense anymore since we do not mutate the global Vue instance in Vue 3.
0 commit comments