Skip to content

Conversation

Andarist
Copy link
Collaborator

@Andarist Andarist commented Feb 2, 2018

Need go back to work, I'll add more tests later.

const incButton = wrapper.find('button').last();
incButton.simulate('click');
incButton.simulate('click');
expect(wrapper).toMatchSnapshot();
Copy link
Contributor

@ryami333 ryami333 Mar 5, 2018

Choose a reason for hiding this comment

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

Any reason why you're using snapshots here instead of actually just making an explicit assertion? In my opinion, this is a common misuse of snapshots and I think it just makes it harder for developers to actually read what this test is actually trying to assert, and subsequently what is an acceptable snapshot diff.

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