We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d11c41c commit d55f8f1Copy full SHA for d55f8f1
docs/ru/guides/testing-async-components.md
@@ -44,7 +44,9 @@ export default {
44
```js
45
import { shallowMount } from '@vue/test-utils'
46
import Foo from './Foo'
47
-jest.mock('axios')
+jest.mock('axios', () => ({
48
+ get: Promise.resolve({ data: 'value' })
49
+}))
50
51
it('делает асинхронный запрос при нажатии кнопки', () => {
52
const wrapper = shallowMount(Foo)
0 commit comments