( fn: (this: T) => void | Promise<void>, )
| 986 | * @param fn The function to implement the shared setup behavior |
| 987 | */ |
| 988 | export function beforeEach<T>( |
| 989 | fn: (this: T) => void | Promise<void>, |
| 990 | ) { |
| 991 | addHook("beforeEach", fn); |
| 992 | } |
| 993 | |
| 994 | /** |
| 995 | * Run some shared teardown after each test in the suite. |