Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
4801いいね 122544回再生

How To Start Writing Unit Tests #programming #javascript #webdevelopment

Unit tests should run quickly and test some in-between logic. In the context of developing a social media application, it's unnecessary to manually navigate a browser, log in, and create a new post just to verify the functionality of a hashtag detection feature. Put that logic in it's own function and unit test it. Then the e2e tests exist, but are slow and run less often, maybe only on a test server when you push your feature branch.

Help support me make more videos: ko-fi.com/meechward

🔗
My Website: www.sammeechward.com/
Instagram: www.instagram.com/meech_ward
TikTok: www.tiktok.com/@meech.s.ward
X: twitter.com/Meech_Ward
Threads: www.threads.net/@meech_ward
Github: github.com/orgs/meech-ward

コメント