Writing Unit Tests with Jest
What testing concept is demonstrated in this setup code?
beforeAll(() => {
return initializeTestDB();
});
beforeEach(() => {
return clearTestData();
});
afterAll(() => {
return closeTestDB();
});
beforeAll(() => {
return initializeTestDB();
});
beforeEach(() => {
return clearTestData();
});
afterAll(() => {
return closeTestDB();
});