我有一个测试文件(业力茉莉花)。内部描述函数有290多个行,抛出TS lint错误。有什么方法可以创建两个共享相同的beforeDeach()的Describe?
describe('test', () => {
beforeEach(async(() => {
//some code
}));
beforeEach(() => {
fixture = TestBed.createComponent(test);
component = fixture.componentInstance;
fixture.detectChanges();
});
//Following by test cases
});