uvu-jest
Version:
Run the existing jest code with uvu
26 lines • 809 B
TypeScript
import { PrimaryHook, Suite } from './index';
declare type Asserts = {
toEqual: (e: any) => void;
toBe: (e: any) => void;
toMatchSnapshot: () => void;
};
export declare function expect(promise: Promise<any>): {
rejects: {
toThrow: (errorMessage?: string) => Promise<void>;
};
};
export declare function expect(any: any): Asserts;
export declare function expect(any: any): {
not: Omit<Asserts, 'toMatchSnapshot'>;
};
declare type HandlerProps = {
test: Suite;
expect: typeof expect;
describe: typeof describe;
afterAll: PrimaryHook;
beforeAll: PrimaryHook;
};
declare type Handler = (props: HandlerProps) => void;
export declare function describe(name: string, handler: Handler, baseSuite?: Suite): void;
export {};
//# sourceMappingURL=jest-wrapper.d.ts.map