Skip to content

Conversation

@gson88
Copy link

@gson88 gson88 commented Oct 3, 2019

I refactored to a functional component and updated some dependencies to get the tests to work. Enzyme does not support hooks atm.

@ghost
Copy link

ghost commented Oct 3, 2019

Looks grate! I was not sure if I should switch to RTL lol. so, i left it be with a nice little comment about implementation detail testing. :) Tests look good

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

This looks goods, should we switch to test() instead of describe and it?

@gson88
Copy link
Author

gson88 commented Oct 4, 2019

Regarding "it" or "test", it does not really matter for me. I usually use "it" so that you can write it as a sentence, it('renders correctly'), it('renders button if state is blablalba').

Describe is needed (afaik) to wrap your tests. If it is not, it is still good to wrap your tests with a description of what component you are testing :)

@gson88 gson88 closed this Feb 15, 2023
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.

1 participant