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

testing <YouTube> with react-testing-library render just empty two empty div #396

Open
JurajLigo opened this issue May 29, 2023 · 1 comment

Comments

@JurajLigo
Copy link

JurajLigo commented May 29, 2023

I have just simple code when I want to write unit test if generates correct iframe code for youtube with correct video title but when I am using react-testing-library it just generates empty divs with these structure:
<div class="" > <div class="" id="" /> </div> </div>

Could you please provide code with simple unit test

@JurajLigo JurajLigo reopened this May 29, 2023
@coderdix24
Copy link

same issue

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