angular test repetitive reused setup
describe('Suite description', () => {
beforeAll(() => {
console.log('Called before all specs are run');
});
afterAll(() => {
console.log('Called after all specs are run');
});
beforeEach(() => {
console.log('Called before each spec is run');
});
afterEach(() => {
console.log('Called after each spec is run');
});
it('Spec 1', () => {
console.log('Spec 1');
});
it('Spec 2', () => {
console.log('Spec 2');
});
});