React ã§ã¦ããããã¹ããããã¨ãã®ãã¹ããã©ã¯ãã£ã¹ã¯ãã¤ãæ©ãã®ã§ãããã¨ãããã 2021 å¹´ 2 ææç¹ã§ã¯ãããããªã¼ã¨ããã®ãã¾ã¨ãã¦ã¿ã¾ãã ã¾ããã¹ãã©ã³ãã¼ã¯ jest ã§ç¢ºå®ã§ããããã§æ©ãè¦ç´ ã¯ã¾ãããã¾ããã ã§ã¯ãReact ã®ãã¹ããã©ããããï¼ã§ãã å ¬å¼ã® react-dom/test-utils ã使ã å ¬å¼ã® react-test-renderer ã使ã @testing-library/react ã使ã 鏿è¢ã¨ãã¦ã¯ãã®ä¸ç¨®é¡ãæåãªã¨ããã§ãããã å ¬å¼ã¨ããé¿ãã¯ã¨ã¦ãé åçã§ãããå®ã¯å ¬å¼ããã¥ã¡ã³ãããããã¤ã©ã¼ãã¬ã¼ããæ¸ãããããã¨ã³ãã¦ã¼ã¶ã使ãã®ã¨åãå½¢ã§ã³ã³ãã¼ãã³ãã使ã£ã¦ãã¹ããè¨è¿°ã§ããããã«è¨è¨ããã¦ãããReact Testing Library ã®å©ç¨ããå§ããã¾ãããã¨ããå½¢ã§ã@testing-library
ãã®ä¸ãæåã®å¦ç¿ææãæ´çãããªãã¸ããªãä½ã£ãã®ã§ããã®ææã«ã¤ãã¦ã¾ã¨ãã¦ããã ä½ã£ããµã³ãã«ããã¸ã§ã¯ãã ããæè»½ã«æ¬²ãããã°ããã®ãªãã¸ããªã clone ãã¦ã»ããã taichi/js-boilerplate master ãã©ã³ãã«ã¯ããããã 㪠JavaScript éçºç°å¢ããµã³ãã«ã³ã¼ãä»ãã§å ¥ã£ã¦ãã frontend ãã©ã³ãã«ã¯ãReact/Redux/webpackãªã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ç¨ã®éçºç°å¢ãå ¥ã£ã¦ãã ããã©ã«ããã©ã³ãã«ãã¦ãã electron ãã©ã³ãã«ã¯ãfrontend ãã©ã³ãã®å 容ã«å ãã¦Electronã§ã¢ããªã±ã¼ã·ã§ã³ãéçºããããã®ç°å¢ãå ¥ã£ã¦ãã ã¯ããã«â æè¿ã® JavaScript ã«ã¤ãã¦â åã¯ä»äºã¨ã㦠JavaScript ãæ¸ãã¦ãã訳ã§ã¯ãªããã©ãããã®åå¹´ãããã®éã«ã¡ãã£ã¨ãããã¼ã«ãªãããã¤ãä½ã£ãã
(注è¨ï¼9/13ãããã ãã翻訳ãã£ã¼ãããã¯ãå ã«è¨äºãä¿®æ£ãããã¾ããã) åå¹´ãã¨ã«âä»ä¸çªããããªâãã¬ã¼ã ã¯ã¼ã¯ãæ°ãã«ç»å ´ãã¦ã¯ãç§ãã¡ã¯èå¥®ã«æ²¸ãè¿ãã¾ãã èªå¤§åºåãä¿¡ãã¦ã¯ããã¾ããã ãã¬ã¼ã ã¯ã¼ã¯ã®å¯¿å½ ã¯ããã¸ã§ã¯ãã®æåãå·¦å³ããã»ã©éè¦ãªè¦ç´ ã§ãããã¬ã¼ã ã¯ã¼ã¯ãé¸ã¶éããã¯ããã¸ã«ãããå¤ãã®æææ±ºå®è ã¯ç´å¾ã®ãã鏿ãããããã«ãã³ãã¥ããã£ã®å¤§ããã人æ°ã大伿¥ã«ãããµãã¼ãã®æç¡ãªã©ãåºæºã«ãã¦ãã¾ãããããå®éã¯ãããããè¦ç´ ã«ãã£ã¦å¯¿å½ã決ã¾ãããã§ã¯ããã¾ããã æåã¯å¢ãããã£ãã®ã«ãå¾ã ã«å¼±ã¾ããæçµçã«ã¯ç·é¦è±ç«ã®ãã¨ãåãæ¶ãã¦ãã¾ããããªãã¬ã¼ã ã¯ã¼ã¯ãé¸ãã§ãã¾ãã¨ãæ¸ãç´ãã«ç¡é§ãªæéãè²»ããããããã¼ã ã®å£«æ°ãä¸ãããããåå ã¨ãªãã¾ããæ¬è¨äºã¯ãããããæ®å¿µãªçµæãåé¿ãããã³ããã¾ã¨ãããã®ã§ãã æ¬è¨äºã§ã¯ä»¥ä¸ã®ãã¨ã示ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}