Skip to content

Commit d03ec59

Browse files
aantipoveddyerburgh
authored andcommitted
docs: replace shallow by shallowMount (#15)
1 parent aa10735 commit d03ec59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ You need to tell Jest to use the serializer. Add this to your Jest config:
2121
And your snapshot tests will be pretty printed 💅
2222

2323
```js
24-
import { shallow } from '@vue/test-utils'
24+
import { shallowMount } from '@vue/test-utils'
2525
import Basic from './Basic.vue'
2626

2727
describe('Basic.vue', () => {
2828
it('renders correctly', () => {
29-
const wrapper = shallow(Basic)
29+
const wrapper = shallowMount(Basic)
3030
expect(wrapper).toMatchSnapshot()
3131
})
3232
})

0 commit comments

Comments
 (0)