Theme
Primary Color
Lesson 10

Jest Global Methods BeforeAll, AfterAll

methods.js
/*
  beforeAll(fn, timeout)
  beforeEach(fn, timeout)
*/

beforeAll(() => {
  // Connect To Database
  // Empty Testing Table
  // Add Dummy Data For Testing
  // Prepare Everything Before Testing
});

afterAll(() => {
  // Clean Database
  // Clean Cache
});