Skip to content

It would be nice to be able to match on text nodes without a parent element #66

Description

@salomvary

Something like this:

        it('finds nested text', () => {

            const component = TestUtils.renderIntoDocument(<div>42</div>);
            return expect(component, 'to contain',
               '42'
            );

        });

Even nicer nicer would be supporting regexes in addition to strings.

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