|
40 | 40 | <!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
41 | 41 | <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
42 | 42 |
|
43 |
| - |
44 | 43 | - [Installation](#installation)
|
45 | 44 | - [A basic example](#a-basic-example)
|
46 | 45 | - [More examples](#more-examples)
|
@@ -69,8 +68,8 @@ npm install --save-dev @testing-library/vue
|
69 | 68 | This library has `peerDependencies` listings for `Vue` and
|
70 | 69 | `vue-template-compiler`.
|
71 | 70 |
|
72 |
| -You may also be interested in installing `@testing-library/jest-dom` so you can use [the custom |
73 |
| -Jest matchers][jest-dom]. |
| 71 | +You may also be interested in installing `@testing-library/jest-dom` so you can |
| 72 | +use [the custom Jest matchers][jest-dom]. |
74 | 73 |
|
75 | 74 | ## A basic example
|
76 | 75 |
|
@@ -123,9 +122,9 @@ test('increments value on click', async () => {
|
123 | 122 | })
|
124 | 123 | ```
|
125 | 124 |
|
126 |
| -> You might want to install [`@testing-library/jest-dom`][jest-dom] to add handy assertions such |
127 |
| -> as `.toBeInTheDocument()`. In the example above, you could write |
128 |
| -> `expect(screen.queryByText('Times clicked: 0')).toBeInTheDocument()`. |
| 125 | +> You might want to install [`@testing-library/jest-dom`][jest-dom] to add handy |
| 126 | +> assertions such as `.toBeInTheDocument()`. In the example above, you could |
| 127 | +> write `expect(screen.queryByText('Times clicked: 0')).toBeInTheDocument()`. |
129 | 128 |
|
130 | 129 | > Using `byText` queries it's not the only nor the best way to query for
|
131 | 130 | > elements. Read [Which query should I use?][which-query] to discover
|
@@ -234,6 +233,7 @@ instead of filing an issue on GitHub.
|
234 | 233 | [](https://github.com/mediafreakch)
|
235 | 234 | [](https://github.com/afenton90)
|
236 | 235 | [](https://github.com/cilice)
|
| 236 | +[](https://github.com/ITenthusiasm) |
237 | 237 |
|
238 | 238 | <!-- prettier-ignore-start -->
|
239 | 239 | [build-badge]: https://img.shields.io/github/workflow/status/testing-library/vue-testing-library/validate?logo=github
|
|
0 commit comments