@@ -24,64 +24,3 @@ See the [docs](https://test-utils.vuejs.org/).
2424## Development  
2525
2626Get started by running ` pnpm install ` . You can run the tests with ` pnpm test ` . That's it!
27- 
28- ## Comparison with Vue Test Utils v1 (targeting Vue 2)  
29- 
30- This is table for those coming from VTU 1, comparing the two APIs. Some things are still a work in progress.
31- 
32- -  ✅ - implemented
33- -  ❌ - not yet implemented
34- -  ⚰️ - will not be implemented (if you have a compelling use case, please open an issue)
35- 
36- ### Mounting Options  
37- 
38- |  option           |  status |  notes                                                                             | 
39- | ------------------| --------| -----------------------------------------------------------------------------------| 
40- |  data             |  ✅      | 
41- |  slots            |  ✅      | 
42- |  mocks            |  ✅      |  nested in ` global `                                                                 | 
43- |  propsData        |  ✅      |  now called ` props `                                                                 | 
44- |  provide          |  ✅      |  nested in ` global `                                                                 | 
45- |  mixins           |  ✅      |  (new!) nested in ` global `                                                          | 
46- |  plugins          |  ✅      |  (new!) nested in ` global `                                                          | 
47- |  component        |  ✅      |  (new!) nested in ` global `                                                          | 
48- |  directives       |  ✅      |  (new!) nested in ` global `                                                          | 
49- |  stubs            |  ✅      | 
50- |  attachToDocument |  ✅      |  renamed ` attachTo ` . See [ here] ( https://github.com/vuejs/vue-test-utils/pull/1492 )  | 
51- |  attrs            |  ✅      | 
52- |  scopedSlots      |  ⚰️     |  scopedSlots are merged with ` slots `  in Vue 3                                      | 
53- |  context          |  ⚰️     |  different from Vue 2, does not make sense anymore.                                | 
54- |  localVue         |  ⚰️     |  no longer required - Vue 3 there is no global Vue instance to mutate.             | 
55- |  listeners        |  ⚰️     |  no longer exists in Vue 3                                                         | 
56- |  parentComponent  |  ⚰️     | 
57- 
58- ### Wrapper API (mount)  
59- 
60- |  method         |  status |  notes                                                                                                                               | 
61- | ----------------| --------| -------------------------------------------------------------------------------------------------------------------------------------| 
62- |  attributes     |  ✅      | 
63- |  classes        |  ✅      | 
64- |  exists         |  ✅      | 
65- |  find           |  ✅      |  only ` querySelector `  syntax is supported. ` find(Comp) `  under discussion [ here] ( https://github.com/vuejs/vue-test-utils/issues/1498 )  | 
66- |  emitted        |  ✅      | 
67- |  findAll        |  ✅      |  see above. ` .vm `  is different to Vue 2. We are exploring options.                                                                   | 
68- |  get            |  ✅      | 
69- |  html           |  ✅      | 
70- |  setValue       |  ✅      |  works for select, checkbox, radio button, input, textarea. Returns ` nextTick ` .                                                      | 
71- |  text           |  ✅      | 
72- |  trigger        |  ✅      |  returns ` nextTick ` . You can do ` await wrapper.find('button').trigger('click') `                                                       | 
73- |  setProps       |  ✅      | 
74- |  props          |  ✅      | 
75- |  setData        |  ✅      | 
76- |  destroy        |  ✅      |  renamed to ` unmount `  to match Vue 3 lifecycle hook name.                                                                            | 
77- |  props          |  ✅      | 
78- |  isVisible      |  ✅      | 
79- |  contains       |  ⚰️     |  use ` find `                                                                                                                           | 
80- |  emittedByOrder |  ⚰️     |  use ` emitted `                                                                                                                        | 
81- |  setSelected    |  ⚰️     |  now part of ` setValue `                                                                                                               | 
82- |  setChecked     |  ⚰️     |  now part of ` setValue `                                                                                                               | 
83- |  is             |  ⚰️     | 
84- |  isEmpty        |  ⚰️     |  use matchers such as [ this] ( https://github.com/testing-library/jest-dom#tobeempty )                                                   | 
85- |  isVueInstance  |  ⚰️     | 
86- |  name           |  ⚰️     | 
87- |  setMethods     |  ⚰️     | 
0 commit comments