Skip to content
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

[WIP] PR to fix the react testing library console warnings in the PR for issue-101 #111

Closed
wants to merge 3 commits into from

Conversation

lpatmo
Copy link
Member

@lpatmo lpatmo commented Apr 26, 2020

Creating this PR so there's a git diff to easily refer back to.

@lpatmo
Copy link
Member Author

lpatmo commented Apr 26, 2020

Personal notes: facebook/react#14769 is relevant

<SignUpForm />
</BrowserRouter>
);
fit('Register a new user on the signup form', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

fit? is this intended? :D

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that was so I could test a single test at a time :) I pushed up a commit... one sec!

Copy link
Member Author

Choose a reason for hiding this comment

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

I applied bf9c00b based on @gauravchl's suggestion in 89b5156, but the interesting thing here is that if I run each test using fit individually, the tests pass without those warnings.

But if I run npm run test with that commit in place, I still see:
image

Not sure if there is something I'm obvious I missed, but tldr I'm very surprised to still see that error if I don't run each test individually...

Copy link
Member Author

Choose a reason for hiding this comment

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

I recorded a quick screenrecording about the problem: https://gitduck.com/watch/5ea551ce1f9488f393e05e1a

@lpatmo
Copy link
Member Author

lpatmo commented Apr 26, 2020

Closing this out since Gaurav fixed these warnings in #105!

@lpatmo lpatmo closed this Apr 26, 2020
@angelocordon angelocordon deleted the issue-101-fix-rtl-tests branch September 12, 2020 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants