In Jest and other test frameworks? What is the point of writing beforeAll?
The following link didn't help:
Difference between @Before, @BeforeClass, @BeforeEach and @BeforeAll
beforeAll(() => server.listen());
The line above was placed in the global scope of the codebase I'm examining.
What would change if I rewrote it as follows?
server.listen()