What is this `beforeEach` supposed to do?