Skip to content

v0.3.1

Choose a tag to compare

@bernhste bernhste released this 13 Sep 16:55
· 13 commits to main since this release
1571742

New beforeEach() / afterEach() and beforeAll() / afterAll() functions to run code before or after tests.

They can be declared at the top level of a file or inside a describe() block:

  • beforeEach() / afterEach(): Run before/after every it() in the same and nested describe() blocks.
  • beforeAll() / afterAll(): Run once before/after all tests in the same describe() block (or, at the top level, once before/after the whole file).

Full Changelog: v0.2.1...v0.3.1