This repository was archived by the owner on Jun 12, 2024. It is now read-only.
Repository navigation
add snapshot tests - #136
Merged
Merged
Conversation
danswick
approved these changes
Jun 5, 2019
danswick
left a comment
Contributor
There was a problem hiding this comment.
These new tests all look good to me, @katydecorah! The individual tests all look super clean to me and local testing worked well 👍
My only suggestion would be to add a note to the README about how to add tests/test cases. But that might make sense to add later as well!
added 2 commits
June 5, 2019 11:13
katydecorah
pushed a commit
that referenced
this pull request
Jun 5, 2019
* master: add snapshot tests (#136) 0.15.1 Prepare 0.15.1 0.15.0 Prepare 0.15.0 [search] adds segment tracking for queries and clicks (#140) [search] add ability to filter results (#138) increase modal zindex to prevent collision with topbar sticker (#139) 0.14.0 Prepare 0.14.0 [PageLayout/TopbarSticker] increase zIndex (#134) [search] Introduce search modal (#133) prepare 0.13.0 adjust version-sort for XX.XX.XX format (#132)
katydecorah
pushed a commit
that referenced
this pull request
Jun 19, 2019
* master: 0.16.2 Prepare 0.16.2 0.16.1 Prepare 0.16.1 0.16.0 Prepare 0.16.0 [search] update search-ui, add loader, increase debounce length (#145) 0.15.2 Prepare 0.15.2 🐛do not package optionalDependencies and jest (#143) add snapshot tests (#136) 0.15.1 Prepare 0.15.1 0.15.0 Prepare 0.15.0 [search] adds segment tracking for queries and clicks (#140)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Everyone gets a test.
fixes #24
This PR adds snapshot tests. Snapshots are based on each components
*-test-cases.jstestCase. These snapshots will be helpful in identifying changes that happen in future pull requests, especially if we are changing a component that is a dependent on another or vice versa. Within each test case, we can add more checks to make sure that elements show up in the rendered (snapshot) code that we expect (but we can add those as needed).Moving forward we'll make sure to add
*-test-cases.jsand*.test.jsfor each component.