sam
05/19/2021, 3:46 PMreevn
05/20/2021, 11:59 AMbeforeTest
/ beforeAny
in the major version?
What was there before:
• `beforeTest`: runs before any leaf test or container
What was added in 4.2:
• `beforeEach`: runs before any leaf test
• beforeContainer:
runs before any container
• `beforeAny`: runs before any leaf test or contaner, same as beforeTest
The name beforeEach
was chosen because it's standard naming for it in many other testing frameworks and because beforeTest
was taken, but it is a bit confusing that both still exist.
What's your take on this? 🙂LeoColman
05/20/2021, 1:18 PMsam
05/20/2021, 1:31 PM