You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like `stubs`, the values passed to `config.mocks` are used by default. Any values passed to the mounting options `mocks` object will take priority over the ones declared in `config.mocks`.
34
+
35
+
Example:
36
+
37
+
```js
38
+
importVueTestUtilsfrom'@vue/test-utils'
39
+
40
+
VueTestUtils.config.mocks['$store'] = {
41
+
state: {
42
+
id:1
43
+
}
44
+
}
45
+
```
46
+
47
+
### `methods`
48
+
49
+
- type: `Object`
50
+
- default: `{}`
51
+
52
+
You can configure default methods using the `config` object. This can be useful for plugins that inject methods to components, like [VeeValidate](https://vee-validate.logaretm.com/). You can override methods set in `config` by passing `methods` in the mounting options.
0 commit comments