Closed kagehina919 closed 6 years ago
@wlach CircleCI couldn't auto-generate snapshots folder. The tests pass now as I added an update flag while testing in bin/build
: yarn test -- -u
which lets CircleCI generate the folder. I thought it might be better to not add snapshots folder to git.
I think you are supposed to commit snapshots to the repository -- that way we'll notice if they ever change. :) https://jestjs.io/docs/en/snapshot-testing
@wlach added __snapshots__
directory. Please review.
@wlach Added test to check it should not render the measures table when measures is an empty list
. Please review. Fixes #335.
Looks great now, thank you!
@wlach I have written one test for the component
measureTable
. How should we get thesampleMeasures
andsampleVersions
for testing? I have used one sample value but how I can use the actions and reducers to fetch it inside the test?