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

Redux Test Suite Expansion #84

Closed
dternyak opened this issue Jul 25, 2017 · 4 comments
Closed

Redux Test Suite Expansion #84

dternyak opened this issue Jul 25, 2017 · 4 comments
Assignees

Comments

@dternyak
Copy link
Contributor

No description provided.

@bfillmer
Copy link
Contributor

General coverage improvements or....?

@dternyak
Copy link
Contributor Author

dternyak commented Aug 27, 2017 via email

@bfillmer
Copy link
Contributor

WIP @ https://github.com/MyEtherWallet/MyEtherWallet/tree/redux-test-improvements

@dternyak One improvement to consider is leveraging snapshot testing for these. Effectively replace defining expected results with snapshots that are auto-generated. Example: https://github.com/bfillmer/todo-and-tonic/blob/master/src/state/reducers/todos.spec.js

When iterating on the test the first time through you update the snapshot until you see the state you expect, then leave it. In the future if any code changes would affect the state shape the snapshots won't match up and Jest will let you know. If it's an expected change you can simply update the snapshot, if not then you know to start digging into the issue.

@dternyak
Copy link
Contributor Author

dternyak commented Aug 27, 2017

I've heard good things about snapshot testing as well. Seems like a good approach for getting an initial layer of tests going 👍

@dternyak dternyak assigned HenryNguyen5 and unassigned bfillmer Sep 17, 2017
@dternyak dternyak assigned skubakdj and unassigned HenryNguyen5 Oct 3, 2017
@dternyak dternyak added this to the Sprint 2 milestone Oct 3, 2017
@dternyak dternyak modified the milestones: Sprint 2, Sprint 3 Oct 30, 2017
@dternyak dternyak modified the milestones: Sprint 3, Sprint 4 Nov 15, 2017
@dternyak dternyak removed this from the Sprint 4 milestone Nov 30, 2017
@dternyak dternyak closed this as completed Jan 1, 2018
vilsbole pushed a commit that referenced this issue Aug 6, 2019
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

No branches or pull requests

4 participants