çæ§ããã³ãã¨ã³ãã®ãã¹ããæ¸ãã¦ããã£ãããã¾ãã§ããããï¼ ããã³ãã¨ã³ãã®ãã¹ããæ¸ãã¨ãã«ã¯ API ã³ã¼ã«ããå¦çãå ¨ã¦ã¢ãã¯ããå¿ è¦ãããã¾ããå¤é¨ã® API ãã³ã¼ã«ããå¦çããã¹ãã«å«ãã㨠API ãµã¼ãã¼ãè½ã¡ã¦ãããªã©ã®å¤é¨ã®è¦å ã«ãã£ã¦ãã¹ãã失æãã¦ãã¾ãå¯è½æ§ãããã¾ããããã¹ããå®è¡ãããã³ã«å®éã« API ãã³ã¼ã«ãã¦ãã¾ãã¨ãµã¼ãã¼ã«è² è·ãããã£ã¦ãã¾ããªã©å¤é¨ã«å¯¾ãã¦ãæªå½±é¿ãä¸ãã¦ãã¾ãã¾ãã ãã¦ãå¾æ¥ã®ã¢ãã¯ããæ段ã¨ãã¦ã¯ Jest ã®ã¢ãã¯ãå©ç¨ã㦠axios ã fetch ãªã©ã®ã¢ã¸ã¥ã¼ã«ãã¢ãã¯åããææ³ããã使ããã¦ãããã¨æãã¾ãã æè¿ã®ãã¹ãææ³ã¨ã㦠API ã³ã¼ã«ãã¢ãã¯ããéã« Jest ã§ã¯ãªã Mock Service Worker (ä»¥ä¸ msw ï¼ã使ç¨ããææ³ã注ç®ããã¦ãã¾ããå®æ½ã«ã©ã®ããã«ä½¿ç¨ããã¦ããã®ã
{{#tags}}- {{label}}
{{/tags}}