jest-gwt
Version:
A small library to help Jest support given-when-then style testing without a bunch of overhead
5 lines (4 loc) • 320 B
TypeScript
import type { beforeEach as jestBeforeEach, afterEach as jestAfterEach } from '@jest/globals';
type Callback<T> = (this: T) => any;
declare const _default: (beforeEach: typeof jestBeforeEach, afterEach: typeof jestAfterEach) => <T>(before: Callback<T>, after?: Callback<T> | undefined) => void;
export default _default;