Skip to content

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

Description

@JurajLigo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions