Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sibelius opened this issue Mar 23, 2022 · 1 comment
Open

Comments

@sibelius
Copy link

sibelius commented Mar 23, 2022

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

@atsikov
Copy link
Owner

atsikov commented Mar 28, 2022

Thanks, I didn't test on modules with import type {}, so likely it is about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants