MS
disableMochaHooks : true
Спасибо за совет )
Ключик помог
Size: a a a
MS
disableMochaHooks : true
BO
MS
MS
'use strict';
describe('My test: describe', () => {
// 1 раз перед всеми тестами
beforeAll(() => {
console.log('beforeAll');
});
// Перед каждым тестом 'it'
beforeEach(() => {
console.log('beforeEach');
throw new Error('Error');
});
// Тест 1
it('My test: it #1', () => {
console.log('My test: it #1');
});
// Тест 2
it('My test: it #2', () => {
console.log('My test: it #2');
});
// После каждого теста 'it'
afterEach(() => {
console.log('afterEach');
});
// 1 раз в самом конце
afterAll(() => {
console.log('afterAll');
});
});
MS
DG
DG
DG
AE
AE
DG
AE
DG
AE
DG
AE
AE
Н