/** * https://github.com/facebook/jest/issues/11698 * * Since fail() was silently removed, we redefine it. */ import { type TestDoneCallback, failWithTestDoneCallback, type TestProvidesCallbackWithDone, type TestProvidesCallback } from '../shared'; import { ExpectedFailError, UnexpectedSuccessFailureError, ExpectedErrorOfSpecificTypeError, type ExpectFailAssertionFunction, expectFailAssertErrorType, type ShouldFailDoneCallback, type ShouldFailProvidesCallbackWithDone, type ShouldFailProvidesCallbackWithResult, type ShouldFailProvidesCallback, type FakeDoneHandler } from '../shared/shared.fail'; /** * @deprecated Use TestDoneCallback from shared instead. This is kept for backwards compatibility. */ export type JestDoneCallback = TestDoneCallback; /** * @deprecated Use failWithTestDoneCallback from shared instead. This is kept for backwards compatibility. */ export declare const failWithJestDoneCallback: typeof failWithTestDoneCallback; /** * @deprecated Use TestProvidesCallbackWithDone from shared instead. This is kept for backwards compatibility. */ export type JestProvidesCallbackWithDone = TestProvidesCallbackWithDone; /** * @deprecated Use TestProvidesCallback from shared instead. This is kept for backwards compatibility. */ export type JestProvidesCallback = TestProvidesCallback; /** * @deprecated Use ExpectedFailError from shared instead. This is kept for backwards compatibility. */ export declare class JestExpectedFailError extends ExpectedFailError { } /** * @deprecated Use UnexpectedSuccessFailureError from shared instead. This is kept for backwards compatibility. */ export declare class JestUnexpectedSuccessFailureError extends UnexpectedSuccessFailureError { } /** * @deprecated Use ExpectedErrorOfSpecificTypeError from shared instead. This is kept for backwards compatibility. */ export declare class JestExpectedErrorOfSpecificTypeError extends ExpectedErrorOfSpecificTypeError { } /** * @deprecated Use failWithTestDoneCallback with failDueToSuccessError from shared instead. This is kept for backwards compatibility. * * @param done - the test done callback to invoke with the failure error */ export declare function failWithDoneDueToSuccess(done: TestDoneCallback): void; /** * @deprecated Use ExpectFailAssertionFunction from shared instead. This is kept for backwards compatibility. */ export type JestExpectFailAssertionFunction = ExpectFailAssertionFunction; /** * @deprecated Use expectFailAssertErrorType from shared instead. This is kept for backwards compatibility. */ export declare const jestExpectFailAssertErrorType: typeof expectFailAssertErrorType; /** * @deprecated Use ShouldFailDoneCallback from shared instead. This is kept for backwards compatibility. */ export type JestShouldFailDoneCallback = ShouldFailDoneCallback; /** * @deprecated Use ShouldFailProvidesCallbackWithDone from shared instead. This is kept for backwards compatibility. */ export type JestShouldFailProvidesCallbackWithDone = ShouldFailProvidesCallbackWithDone; /** * @deprecated Use ShouldFailProvidesCallbackWithResult from shared instead. This is kept for backwards compatibility. */ export type JestShouldFailProvidesCallbackWithResult = ShouldFailProvidesCallbackWithResult; /** * @deprecated Use ShouldFailProvidesCallback from shared instead. This is kept for backwards compatibility. */ export type JestShouldFailProvidesCallback = ShouldFailProvidesCallback; /** * @deprecated Use FakeDoneHandler from shared instead. This is kept for backwards compatibility. */ export type JestFakeDoneHandler = FakeDoneHandler;