eslint-jest-testing-library-codemod icon indicating copy to clipboard operation
eslint-jest-testing-library-codemod copied to clipboard

SyntaxError: Identifier 'screen' has already been declared (2:17)

Open sibelius opened this issue 2 years ago • 1 comments

I've got this error in the following file

import type { RenderResult } from '@testing-library/react';
import { render, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';

const { getByText }: RenderResult = render(<Root />);

not sure if RenderResult type annotation changed something

sibelius avatar Mar 23 '22 17:03 sibelius