From 0a97123758ea105113b40de6cb13298d02572702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 5 Oct 2019 12:32:15 +0100 Subject: [PATCH] fix(docs): mention snapshots in CONTRIBUTING.md --- CONTRIBUTING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ca743c727..813481fd5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,6 +36,15 @@ UI is written using [React](https://reactjs.org), follow user guide for [create-react-app](https://github.com/facebook/create-react-app) to make changes to the UI code. +Some UI tests are using [snapshots](https://jestjs.io/docs/en/snapshot-testing). +After making changes that affect how existing components are rendered please +run: + + cd ui && npm test -- -u + +to update all snapshots. Remember to commit those changes when making a pull +request. + ## Running To build and start `karma` from local branch see `Running` section of the