Skip to content

Refactor `Wrapper#find` for `Wrapper#findComponent`

Eduardo Sanz García requested to merge eduardosanz/use-findComponent into master

What does this MR do and why?

Automatic conversion of Vue Test Util Wrapper#find for Wrapper#findComponent.

From the Vue Test Util page:

Deprecation warning

Using find to search for a Component is deprecated and will be removed.
Use findComponent instead. The find method will continue to work for
finding elements using any valid selector.

Screenshots or screen recordings

No change. It only affects tests.

How to set up and validate locally

All Jest specss pass: yarn jest

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eduardo Sanz García

Merge request reports

Loading