@@ -20,9 +20,9 @@ When passing `stubs` as an array in the mounting options, `config.stubs` are con
2020Example:
2121
2222``` js
23- import VueTestUtils from ' @vue/test-utils'
23+ import { config } from ' @vue/test-utils'
2424
25- VueTestUtils . config .stubs [' my-component' ] = ' <div />'
25+ config .stubs [' my-component' ] = ' <div />'
2626```
2727
2828### ` mocks `
@@ -35,9 +35,9 @@ Like `stubs`, the values passed to `config.mocks` are used by default. Any value
3535Example:
3636
3737``` js
38- import VueTestUtils from ' @vue/test-utils'
38+ import { config } from ' @vue/test-utils'
3939
40- VueTestUtils . config .mocks [' $store' ] = {
40+ config .mocks [' $store' ] = {
4141 state: {
4242 id: 1
4343 }
@@ -54,9 +54,9 @@ You can configure default methods using the `config` object. This can be useful
5454Example:
5555
5656``` js
57- import VueTestUtils from ' @vue/test-utils'
57+ import { config } from ' @vue/test-utils'
5858
59- VueTestUtils . config .methods [' errors' ] = () => {
59+ config .methods [' errors' ] = () => {
6060 any : () => false
6161}
6262```
@@ -71,9 +71,9 @@ Like `stubs` or `mocks`, the values passed to `config.provide` are used by defau
7171Example:
7272
7373``` js
74- import VueTestUtils from ' @vue/test-utils'
74+ import { config } from ' @vue/test-utils'
7575
76- VueTestUtils . config .provide [' $logger' ] = {
76+ config .provide [' $logger' ] = {
7777 log : (... args ) => {
7878 console .log (... args)
7979 }
@@ -90,9 +90,9 @@ Logs warning when extended child components are automatically stubbed. Hides war
9090Example:
9191
9292``` js
93- import VueTestUtils from ' @vue/test-utils'
93+ import { config } from ' @vue/test-utils'
9494
95- VueTestUtils . config .logModifiedComponents = false
95+ config .logModifiedComponents = false
9696```
9797
9898### ` silent `
@@ -105,7 +105,7 @@ It suppresses warnings triggered by Vue while mutating component's observables (
105105Example:
106106
107107``` js
108- import VueTestUtils from ' @vue/test-utils'
108+ import { config } from ' @vue/test-utils'
109109
110- VueTestUtils . config .silent = false
110+ config .silent = false
111111```
0 commit comments