Skip to content

debug() always returns undefined #161

@cellog

Description

@cellog
  • react-testing-library version: 5.0.0
  • react version: 16.4.2
  • node version: 8.11.3
  • npm (or yarn) version: 6.4.0

Relevant code or config:

      const Test = () => (
        <div>
            <div>hi</div>
            <div>other</div>
        </div>
      )
      const container = rtl.render(Test)
      console.log(container.debug())

What you did:

ran this in a test

running test in a jsdom environment

What happened:

undefined (debug doesn't do anything)

Reproduction:

Problem description:

docs imply debug() does something :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions