Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

add snapshot tests - #136

Merged
katydecorah merged 3 commits into
masterfrom
tests
Jun 5, 2019
Merged

katydecorah merged 3 commits into
masterfrom
tests

Conversation

@katydecorah

@katydecorah katydecorah commented May 31, 2019 •

Copy link
Copy Markdown
Contributor

Everyone gets a test.

fixes #24

This PR adds snapshot tests. Snapshots are based on each components *-test-cases.js testCase. 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.js and *.test.js for each component.

@danswick danswick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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!

Katy DeCorah added 2 commits June 5, 2019 11:13
* master:
  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)
@katydecorah
katydecorah merged commit 372b976 into master Jun 5, 2019
@katydecorah
katydecorah deleted the tests branch June 5, 2019 15:26
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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add automated testing

2 participants