Skip to content

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

@JurajLigo

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

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