Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

#10 - clean up document targets and components #19

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

Conversation

@oieduardorabelo
Copy link
Contributor

@oieduardorabelo oieduardorabelo commented May 4, 2019
edited
Loading

addressing discussion from #10

EmilTholin and benmonro reacted with thumbs up emoji
})

test('after each test above, document is clean from targets and components', () => {
expect(document.body.innerHTML).toBe('<div></div>')
Copy link
Contributor Author

@oieduardorabelo oieduardorabelo May 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output here is dependent on previous tests,

  • before: <div></div><div></div><div></div><div></div><main data-testid=\"custom-target\"></main>

Copy link
Contributor

@EmilTholin EmilTholin May 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the body will be entirely empty after this great addition.

benmonro reacted with thumbs up emoji
Copy link
Member

@benmonro benmonro May 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @EmilTholin. It should be empty

Copy link
Contributor Author

@oieduardorabelo oieduardorabelo May 4, 2019
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed is happening, as we can see in the failed build on travis:

i bet it was some kind of local jest cache, running with --no-cache seems to have fixed it!

thanks @EmilTholin @benmonro

EmilTholin reacted with thumbs up emoji
@benmonro benmonro merged commit 9e6594d into testing-library:master May 5, 2019
Copy link
Member

benmonro commented May 5, 2019

🎉 This PR is included in version 1.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Reviewers

@benmonro benmonro benmonro left review comments

+1 more reviewer

@EmilTholin EmilTholin EmilTholin left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /