File tree 1 file changed +5
-6
lines changed 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -122,16 +122,14 @@ test('increments value on click', async () => {
122
122
})
123
123
```
124
124
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
126
126
> ` .toBeInTheDocument() ` :
127
127
> ` expect(screen.queryByText('Times clicked: 0')).toBeInTheDocument() ` .
128
128
129
129
> 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.
135
133
136
134
### More examples
137
135
@@ -251,6 +249,7 @@ instead of filling an issue on GitHub.
251
249
[ types ] : https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__vue
252
250
[ discord ] : https://testing-library.com/discord
253
251
[ jest-dom ] : https://github.com/testing-library/jest-dom
252
+ [ which-query ] : https://testing-library.com/docs/guide-which-query
254
253
[ guiding-principle ] : https://twitter.com/kentcdodds/status/977018512689455106
255
254
256
255
[ docs ] : https://testing-library.com/vue
You can’t perform that action at this time.
0 commit comments