From 8711742320c794e1f190ae8c428d9705b62d8c6e Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Fri, 9 Oct 2026 19:13:51 +0200 Subject: [PATCH 1/2] vue: add deprecations --- docs/vue-testing-library/api.mdx | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/docs/vue-testing-library/api.mdx b/docs/vue-testing-library/api.mdx index 4244196d..b610c6ff 100644 --- a/docs/vue-testing-library/api.mdx +++ b/docs/vue-testing-library/api.mdx @@ -64,15 +64,27 @@ Additionally, the following options can also be provided: ##### `store` (`Object` | `Store`) -The object definition of a [Vuex](https://vuex.vuejs.org/) store. If a `store` -object is provided, `Vue Testing Library` will import and configure a Vuex -store. If an instantiated Vuex store is passed, it will be used. +> ⚠️ Deprecated: `store` was removed in Vue Testing Library v6.4.0. Passing it +> only logs a warning. Create a [Vuex](https://vuex.vuejs.org/) store instance +> and register it through `global.plugins` instead. + +```js +render(Component, { + global: {plugins: [store]}, +}) +``` ##### `routes` (`Array` | `VueRouter`) -A set of routes for [Vue Router](https://router.vuejs.org/). If `routes` is -provided, the library will import and configure Vue Router. If an instantiated -Vue Router is passed, it will be used. +> ⚠️ Deprecated: `routes` was removed in Vue Testing Library v6.4.0. Passing it +> only logs a warning. Create a [Vue Router](https://router.vuejs.org/) instance +> and register it through `global.plugins` instead. + +```js +render(Component, { + global: {plugins: [router]}, +}) +``` ##### `props` (`Object`) From a6b1bf6f99b5711c47bd8e3c9db519377a9ffe22 Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Fri, 9 Oct 2026 21:36:49 +0200 Subject: [PATCH 2/2] update deprecated format --- docs/vue-testing-library/api.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/vue-testing-library/api.mdx b/docs/vue-testing-library/api.mdx index b610c6ff..49694822 100644 --- a/docs/vue-testing-library/api.mdx +++ b/docs/vue-testing-library/api.mdx @@ -62,11 +62,11 @@ An object containing additional information to be passed to `@vue/test-utils` Additionally, the following options can also be provided: -##### `store` (`Object` | `Store`) +##### ~~`store`~~ (deprecated) -> ⚠️ Deprecated: `store` was removed in Vue Testing Library v6.4.0. Passing it -> only logs a warning. Create a [Vuex](https://vuex.vuejs.org/) store instance -> and register it through `global.plugins` instead. +Removed in Vue Testing Library v6.4.0, passing it only logs a warning. Create a +[Vuex](https://vuex.vuejs.org/) store instance and register it through +`global.plugins` instead. ```js render(Component, { @@ -74,11 +74,11 @@ render(Component, { }) ``` -##### `routes` (`Array` | `VueRouter`) +##### ~~`routes`~~ (deprecated) -> ⚠️ Deprecated: `routes` was removed in Vue Testing Library v6.4.0. Passing it -> only logs a warning. Create a [Vue Router](https://router.vuejs.org/) instance -> and register it through `global.plugins` instead. +Removed in Vue Testing Library v6.4.0, passing it only logs a warning. Create a +[Vue Router](https://router.vuejs.org/) instance and register it through +`global.plugins` instead. ```js render(Component, {