Let's update in TodoApp.vue to render the todos array: With this change, the test is passing. This is the documentation for Vue Test Utils v1, which targets Vue 2 and earlier. Feedback and bug reports are welcome! Working with .vue files. Get Vue.js 2 Design Patterns and Best Practices now with O’Reilly online learning. In my experience, this is a very useful approach. In short: Vue Test Utils 1 targets Vue 2 . Vue Test Utils is the official low-level component testing library that was written to provide users access to Vue specific APIs. The next branch contains support for Vue 3. Let's look at the second test again, in detail: The test is split into three distinct stages, separated by new lines. Utilities for testing Vue components. Guide Style Guide Cookbook Examples Contribute Migration from Vue 2 API Reference Ecosystem . The next feature we will be adding is for the user to be able to create a new todo. toContain ( 'post' ) ; } ) } ) Some other types of tests include e2e (end to end) tests, and snapshot tests. Let's learn Vue Test Utils (VTU) by building a simple Todo app and writing tests as we go. Next, we call mount and pass the component as the first argument - this is something almost every test you write will do. We then call the text method to get the content, which we expect to be 'Learn Vue.js 3'. Vue Test Utils (VTU) is a set of utility functions aimed to simplify testing Vue.js components. In practice, a synthetic event’s processed the same way as an event dispatched by a browser. 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. Run the following in your Terminal: const wrapper = mount (SomeComponent); const options = wrapper. Vue Test Utils follows Semantic Versioning in all its official projects for documented features and behavior. There is vue-jest for loading .vue files into Jest. We are also asserting that only 1 todo is rendered - this makes it clear that we are adding an additional todo, as the final line of the test suggests. This can be configured inside our project's ... Take O’Reilly online learning with you and learn anywhere, anytime on your phone and tablet. Let's update TodoApp.vue to have the