all
config.
// consistent order of hooks
['beforeAll', 'beforeEach', 'afterEach', 'afterAll']
// bad
afterAll(() => {
removeMyDatabase();
});
beforeAll(() => {
createMyDatabase();
});
// good
beforeAll(() => {
createMyDatabase();
});
afterAll(() => {
removeMyDatabase();
});