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

Sam Meech-Ward • January 27, 2024
Video Thumbnail
Sam Meech-Ward Logo

Sam Meech-Ward

@sammeechward

About

I make things with code and I teach other people how to do the same. I created this channel to share some of my creations and teach people about programming and making.

Video Description

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: https://ko-fi.com/meechward 🔗 My Website: https://www.sammeechward.com Instagram: https://www.instagram.com/meech_ward TikTok: https://www.tiktok.com/@meech.s.ward X: https://twitter.com/Meech_Ward Threads: https://www.threads.net/@meech_ward Github: https://github.com/orgs/meech-ward

You May Also Like