From fd8061c5f3b68c3211f7bd010bf18f01526cac92 Mon Sep 17 00:00:00 2001 From: Caleb Meredith Date: Sun, 11 Sep 2016 19:04:12 -0400 Subject: [PATCH] Add `afterAll` and `beforeAll` to docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I didn’t know that Jest had support for `afterAll` and `beforeAll` until after opening a couple of issues and looking at the Jest source code. It could be really helpful to newcomers in the future to know these hooks exist 😊 --- docs/API.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/API.md b/docs/API.md index 8ce818df7d2f..1b9a23462d59 100644 --- a/docs/API.md +++ b/docs/API.md @@ -13,6 +13,8 @@ In your test files, Jest puts each of these methods and objects into the global - `afterEach(fn)` - `beforeEach(fn)` + - `afterAll(fn)` + - `beforeAll(fn)` - [`describe(name, fn)`](#basic-testing) - [`expect(value)`](#expect-value) - [`it(name, fn)`](#basic-testing)