浏览代码

[docs] Add how to update test snapshots

Harsh Gupta 4 年之前
父节点
当前提交
6ec6d7a0fa
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/docs-site/content/developer/development/_index.md

+ 3 - 0
docs/docs-site/content/developer/development/_index.md

@@ -703,6 +703,9 @@ To run the tests in watch mode:
 While in watch mode Jest will detect changes to all files and re-run related tests. There are
 While in watch mode Jest will detect changes to all files and re-run related tests. There are
 also options to target specific files or tests. Press 'w' in the console to see the options.
 also options to target specific files or tests. Press 'w' in the console to see the options.
 
 
+In order to update the test snapshots, let the first checks of tests complete and then 
+press 'u' in the console to update the snapshots.
+
 Note: on certain OS like Ubuntu, running the tests via a global jest seems to not hang your system
 Note: on certain OS like Ubuntu, running the tests via a global jest seems to not hang your system
 
 
     npm install jest --global
     npm install jest --global