Render component in beforeEach

PHOTO EMBED

Sun Jan 30 2022 11:51:14 GMT+0000 (Coordinated Universal Time)

Saved by @avivdaniel #typescript

let getByText: any;

describe('test', () => {
    beforeEach(() => {
      ({ getByText } = render(<Component />));
    })});
content_copyCOPY