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