11<div align =" center " >
22<h1 >Vue Testing Library</h1 >
33
4+ <br />
5+
46<a href =" https://www.joypixels.com/emoji/1F98E " >
57 <img
68 height="80"
1618
1719<br />
1820
19- [ ** Read the Docs ** ] [ docs ] | [ Edit the docs] [ docs-edit ]
21+ [ ** Read the docs ** ] [ docs ] | [ Edit the docs] [ docs-edit ]
2022
2123<br />
2224
3638
3739<h2 >Table of Contents</h2 >
3840
41+ <!-- START doctoc generated TOC please keep comment here to allow auto update -->
42+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43+
3944- [ Installation] ( #installation )
4045- [ A simple example] ( #a-simple-example )
4146 - [ More examples] ( #more-examples )
4449- [ License] ( #license )
4550- [ Contributors] ( #contributors )
4651
52+ <!-- END doctoc generated TOC please keep comment here to allow auto update -->
53+
4754## Installation
4855
49- This module is distributed via npm and should be installed as one of your
56+ This module is distributed via ` npm ` and should be installed as one of your
5057project's ` devDependencies ` :
5158
5259```
@@ -57,7 +64,7 @@ This library has `peerDependencies` listings for `Vue` and
5764` vue-template-compiler ` .
5865
5966You may also be interested in installing ` jest-dom ` so you can use
60- [ the custom Jest matchers] ( https://github.com/gnapse /jest-dom#readme ) .
67+ [ the custom Jest matchers] ( https://github.com/testing-library /jest-dom#readme ) .
6168
6269## A simple example
6370
@@ -90,7 +97,7 @@ import {render, fireEvent} from '@testing-library/vue'
9097import TestComponent from ' ./TestComponent.vue'
9198
9299test (' increments value on click' , async () => {
93- // The render method returns a collection of utilities to query your component.
100+ // The render method returns a collection of utilities to query the component.
94101 const {getByText } = render (TestComponent)
95102
96103 // getByText returns the first matching node for the provided text, and
@@ -100,7 +107,7 @@ test('increments value on click', async () => {
100107 // `button` is the actual DOM element.
101108 const button = getByText (' increment' )
102109
103- // Dispatch a native click event .
110+ // Dispatch a couple of native click events .
104111 await fireEvent .click (button)
105112 await fireEvent .click (button)
106113
@@ -124,12 +131,12 @@ Feel free to contribute with more examples!
124131
125132## Docs
126133
127- [ ** Read the Docs ** ] [ docs ] | [ Edit the docs] [ docs-edit ]
134+ [ ** Read the docs ** ] [ docs ] | [ Edit the docs] [ docs-edit ]
128135
129136## Typings
130137
131138The TypeScript type definitions are in the
132- [ DefinitelyTyped repo] ( https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/ types/testing-library__vue )
139+ [ DefinitelyTyped repo] [ types ]
133140and bundled with Vue Testing Library.
134141
135142## License
@@ -166,13 +173,14 @@ and bundled with Vue Testing Library.
166173[ npm ] : https://badge.fury.io/js/%40testing-library%2Fvue
167174[ license-badge ] : https://img.shields.io/github/license/testing-library/vue-testing-library.svg
168175[ license ] : https://github.com/testing-library/vue-testing-library/blob/master/LICENSE
176+ [ types ] : https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__vue
169177
170178[ docs ] : https://testing-library.com/vue
171179[ docs-edit ] : https://github.com/testing-library/testing-library-docs
172180
173- [ test-directory ] : https://github.com/testing-library/vue-testing-library/tree /master/tests /__tests__
174- [ vuex-example ] : https://github.com/testing-library/vue-testing-library/tree /master/tests /__tests__/vuex.js
175- [ vue-router-example ] : https://github.com/testing-library/vue-testing-library/tree /master/tests /__tests__/vue-router.js
176- [ vee-validate-example ] : https://github.com/testing-library/vue-testing-library/tree /master/tests /__tests__/validate-plugin.js
181+ [ test-directory ] : https://github.com/testing-library/vue-testing-library/blob /master/src /__tests__
182+ [ vuex-example ] : https://github.com/testing-library/vue-testing-library/blob /master/src /__tests__/vuex.js
183+ [ vue-router-example ] : https://github.com/testing-library/vue-testing-library/blob /master/src /__tests__/vue-router.js
184+ [ vee-validate-example ] : https://github.com/testing-library/vue-testing-library/blob /master/src /__tests__/validate-plugin.js
177185[ vue-i18n-example ] : https://github.com/testing-library/vue-testing-library/blob/master/tests/__tests__/vueI18n.js
178186<!-- prettier-ignore-end -->
0 commit comments