Skip to content

Commit

Permalink
feat(queryconfig): Reverted removal of generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasKainer committed Nov 16, 2021
1 parent 40b849c commit df77ec3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types/__tests__/type-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ export async function testQueries() {

// screen queries
screen.getByText('foo')
screen.getByText('foo')
screen.getByText<HTMLDivElement>('foo')
screen.queryByText('foo')
await screen.findByText('foo')
await screen.findByText('foo', undefined, {timeout: 10})
screen.debug(screen.getAllByText('bar'))
screen.queryAllByText('bar')
await screen.findAllByText('bar')
await screen.findAllByRole('button', {name: 'submit'})
await screen.findAllByRole<HTMLButtonElement>('button', {name: 'submit'})
await screen.findAllByText('bar', undefined, {timeout: 10})
}

Expand Down Expand Up @@ -249,11 +249,11 @@ export async function testWithin() {
container.queryAllByLabelText('Some label')

container.getByText('Click me')
container.getByText('Click me')
container.getAllByText('Click me')
container.getByText<HTMLButtonElement>('Click me')
container.getAllByText<HTMLButtonElement>('Click me')

await container.findByRole('button', {name: /click me/i})
container.getByRole('button', {name: /click me/i})
container.getByRole<HTMLButtonElement>('button', {name: /click me/i})
}

/*
Expand Down

0 comments on commit df77ec3

Please sign in to comment.