We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe483a9 commit 3522eedCopy full SHA for 3522eed
docs/qwik-testing-library/example.mdx
@@ -29,13 +29,14 @@ import {Counter} from './counter'
29
describe('<Counter />', () => {
30
// describe the test case
31
it('should increment the counter', async () => {
32
+ // setup user event
33
+ const user = userEvent.setup()
34
// render the component into the DOM
35
await render(<Counter />)
36
37
// retrieve the 'increment count' button
38
const incrementBtn = screen.getByRole('button', {name: /increment count/})
39
// click the button twice
- const user = userEvent.setup()
40
await user.click(incrementBtn)
41
42
0 commit comments