mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(test-runner): remove unimplemented jest expect types (#7292)
This commit is contained in:
parent
bd86e70465
commit
ba3f0ff6f5
14
types/testExpect.d.ts
vendored
14
types/testExpect.d.ts
vendored
@ -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.
|
||||
*/
|
||||
@ -49,8 +57,8 @@ declare global {
|
||||
/**
|
||||
* Match snapshot
|
||||
*/
|
||||
toMatchSnapshot(options?: {
|
||||
name?: string,
|
||||
toMatchSnapshot(options: {
|
||||
name: string,
|
||||
threshold?: number
|
||||
}): R;
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user