Skip to content

Commit e947a8e

Browse files
crutchcornjgoux
andcommitted
fix: TypeScript should no longer throw warnings about Matchers
Co-authored-by: jgoux <[email protected]>
1 parent b2403f5 commit e947a8e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

extend-expect.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
/// <reference types="jest" />
44

55
declare namespace jest {
6-
interface Matchers<R, ignored> {
6+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
7+
interface Matchers<R, T = {}> {
78
/**
89
* @description
910
* Assert whether a query is present in the console or not.

types/__tests__/type-tests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {fireEvent, queries, waitFor, BoundFunctions} from 'cli-testing-library'
1+
import {fireEvent, queries, waitFor, BoundFunctions} from '../index'
22
import {render, TestInstance} from '../pure'
33
import userEvent from '../../src/user-event'
44

@@ -33,6 +33,7 @@ export function testBoundFunctions() {
3333
export async function eventTest() {
3434
const instance = await render('command', [])
3535

36+
// eslint-disable-next-line @typescript-eslint/await-thenable
3637
await fireEvent.sigterm(instance)
3738

3839
fireEvent.write(instance, {value: 'test'})

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ export * from './queries'
1414
export * from './query-helpers'
1515
export * from './suggestions'
1616
export * from './wait-for'
17-
export type * from '../src/user-event/index'
17+
export * from '../src/user-event/index'

0 commit comments

Comments
 (0)