From d392b2ad1ca6054a622abeb26847b99a5c2797d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Palkovi=C4=8D?= Date: Sat, 19 Sep 2020 21:07:53 +0200 Subject: [PATCH] fix(test-utils/wrapper): clarify deprecation note for wrong "get" usage If `wrapper.get` was called with a vue component instance, a misleading deprecation note was shown to the user. This fix includes the `get` method into the deprecation message fix #1687 --- packages/test-utils/src/wrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/test-utils/src/wrapper.js b/packages/test-utils/src/wrapper.js index 625ce686f..25e4867fe 100644 --- a/packages/test-utils/src/wrapper.js +++ b/packages/test-utils/src/wrapper.js @@ -224,7 +224,7 @@ export default class Wrapper implements BaseWrapper { const selector = getSelector(rawSelector, 'find') if (selector.type !== DOM_SELECTOR) { warnDeprecated( - 'finding components with `find`', + 'finding components with `find` or `get`', 'Use `findComponent` instead' ) }