1beforeAll(() => console.log('1 - beforeAll'));
2afterAll(() => console.log('1 - afterAll'));
3beforeEach(() => console.log('1 - beforeEach'));
4afterEach(() => console.log('1 - afterEach'));
5test('', () => console.log('1 - test'));
6describe('Scoped / Nested block', () => {
7 beforeAll(() => console.log('2 - beforeAll'));
8 afterAll(() => console.log('2 - afterAll'));
9 beforeEach(() => console.log('2 - beforeEach'));
10 afterEach(() => console.log('2 - afterEach'));
11 test('', () => console.log('2 - test'));
12});
13
14// 1 - beforeAll
15// 1 - beforeEach
16// 1 - test
17// 1 - afterEach
18// 2 - beforeAll
19// 1 - beforeEach
20// 2 - beforeEach
21// 2 - test
22// 2 - afterEach
23// 1 - afterEach
24// 2 - afterAll
25// 1 - afterAll
26Copy