From ec714638a41e7e9ed20fdd23e763f8baaf18cbc4 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sat, 24 Dec 2022 23:32:10 +0100 Subject: [PATCH] Add JSDoc comments. --- source/group.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/group.ts b/source/group.ts index 10b8c63..a678ff5 100644 --- a/source/group.ts +++ b/source/group.ts @@ -22,10 +22,12 @@ export class Group { constructor(public name: string) {} + /** Set a function to run after all tests have finished. */ afterAll(fn: Group["_afterAll"]): void { this._afterAll = fn; } + /** Set a function to run before all tests begin. */ beforeAll(fn: Group["_beforeAll"]): void { this._beforeAll = fn; }