Skip to content

Commit

Permalink
fix(test-runner): remove unimplemented jest expect types (microsoft#7292
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JoelEinbinder committed Jun 24, 2021
1 parent bd86e70 commit ba3f0ff
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 ba3f0ff

Please sign in to comment.