as you move up the pyramid, the confidence quotient of each form of testing increases. (snip) Integration tests strike a great balance on the trade-offs between confidence and speed/expense. This is why it's advisable to spend most (not all, mind you) of your effort there. ͔͠͠ɺϐϥϛουͷ্ʹߦ͘΄ͲɺͦΕͧΕͷςετͷ৴པࢦ͕ߴ͘ͳΔ͜ͱɺ ͜ͷਤͰࣔ͞Ε͍ͯ·ͤΜɻ
ʢதུʣ ౷߹ςετɺ৴པੑͱɾඅ༻ͷτϨʔυΦϑͷόϥϯεΛ͏·͘ͱ͍ͬͯ·͢ɻ͜ ͷͨΊɺ΄ͱΜͲͷ࿑ྗΛͦ͜ʹඅ͢͜ͱ͕ਪ͞Ε·͢ (ͯ͢Ͱ͋Γ·ͤΜ͕)ɻ https://kentcdodds.com/blog/write-tests ΑΓൈਮɺ༁