Skip to content

Commit

Permalink
cherry-pick(release-1.12): remove unimplemented jest expect types (#7311
Browse files Browse the repository at this point in the history
)

PR #7292 SHA ba3f0ff

Co-authored-by: Joel Einbinder <joel.einbinder@gmail.com>
  • Loading branch information
aslushnikov and JoelEinbinder committed Jun 25, 2021
1 parent dd153b3 commit 770fce5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions types/testExpect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ export declare type Expect = {

declare global {
export namespace PlaywrightTest {
export interface Matchers<R> extends expect.Matchers<R> {
type OverriddenProperties =
'not' |
'resolves' |
'rejects' |
'toMatchInlineSnapshot' |
'toThrowErrorMatchingInlineSnapshot' |
'toMatchSnapshot' |
'toThrowErrorMatchingSnapshot';
export interface Matchers<R> extends Omit<expect.Matchers<R>, OverriddenProperties> {
/**
* If you know how to test something, `.not` lets you test its opposite.
*/
Expand All @@ -49,8 +57,8 @@ declare global {
/**
* Match snapshot
*/
toMatchSnapshot(options?: {
name?: string,
toMatchSnapshot(options: {
name: string,
threshold?: number
}): R;
/**
Expand Down

0 comments on commit 770fce5

Please sign in to comment.