Skip to content

Commit ecc1ba3

Browse files
committed
Fix links
1 parent 0e34d6c commit ecc1ba3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,14 @@ test('increments value on click', async () => {
122122
})
123123
```
124124

125-
> You might want to install jest-dom[jest-dom] to add handy assertions such as
125+
> You might want to install [jest-dom][jest-dom] to add handy assertions such as
126126
> `.toBeInTheDocument()`:
127127
> `expect(screen.queryByText('Times clicked: 0')).toBeInTheDocument()`.
128128
129129
> Using `byText` queries it's not the only nor the best way to query for
130-
> elements. Read
131-
> [Which query should I use?](https://testing-library.com/docs/guide-which-query)
132-
> to discover alternatives. In the example above,
133-
> `getByRole('button', {name: 'increment'})` is possibly the best option to get
134-
> the button element.
130+
> elements. Read [Which query should I use?][which-query] to discover
131+
> alternatives. In the example above, `getByRole('button', {name: 'increment'})`
132+
> is possibly the best option to get the button element.
135133
136134
### More examples
137135

@@ -251,6 +249,7 @@ instead of filling an issue on GitHub.
251249
[types]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__vue
252250
[discord]: https://testing-library.com/discord
253251
[jest-dom]: https://github.com/testing-library/jest-dom
252+
[which-query]: https://testing-library.com/docs/guide-which-query
254253
[guiding-principle]: https://twitter.com/kentcdodds/status/977018512689455106
255254

256255
[docs]: https://testing-library.com/vue

0 commit comments

Comments
 (0)