Skip to content

Commit

Permalink
Add afterAll and beforeAll to docs (jestjs#1674)
Browse files Browse the repository at this point in the history
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 😊
  • Loading branch information
calebmer authored and cpojer committed Sep 12, 2016
1 parent 1cda98a commit de942d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit de942d6

Please sign in to comment.