TDD in JavaScript | Test Driven Development

preview_player
Показать описание
Learn how to use test-driven development (TDD) in your JavaScript applications to help guide your software development.

🔗Code:

🔗Moar Links
Рекомендации по теме
Комментарии
Автор

I think its worth mentioning in these type of videos, that a huge advantage of TDD is that you are making a sort of checklist about what it is that you want your software to do. These "checklists" help me know what the next step will be, and I dont feel as lost as before.

JJP-lbek
Автор

A very good introduction to TDD. I just started using TDD a month or so ago and I found this to be a helpful description of the process.

ericschmidt
Автор

you know just how much sense this just makes

arbinshrestha
Автор

Best TDD video i've seen so far nice one

RioKnightley
Автор

Everything was very well laid out! Thank you for this great content!

natewalchenbach
Автор

I might be really nit picky, but you never want to write a test that passes because you cannot be sure that it is testing anything. That is the sole purpose of red, green, refactor - to confirm that the code you wrote actually had an effect on a test. Also, you would be better off if you delayed the happy case until the very end, because even in your example the happy case test passed, but the implementation was completely wrong, making the test useless at that point. Anyways, really enjoyed the video, keep it up :D

sarabwt
Автор

A very good introduction to TDD. SIMPLE

NinjaJutsu-yd
Автор

Great content! It would be awesome to have something similar for frontend TDD (react, angular, vuejs; whichever)

mathieupbourgeoismat
Автор

Killing it! What's up next? before/beforeEach? Or what it is that's actually making the test fail (an error being thrown)?

AwesomeEnterpriseInc
Автор

I'm starting with TDD now.I might be wrong, but seems to me that TDD is better done with OOP them functional.Because of the clean archtecture and SOLID principals and the resulting design.What do you think about that?
🖖🙏

leandrogehlen
Автор

I have questions! when I use TDD with the express, should I test my endpoints API with the password validation? or should testing APIs be the last thing I should do before making the app in production?

brhoom.h
Автор

Very new to TDD, so forgive the rookie question.

I’m working very closely with HTML and CSS, so often what I want to test is “does this look right?”

Even down in the JavaScript level, i often find myself pressed to describe what my desired output is, but I’ll know it when I see it.

Is there a way to get the test outputs to appear in the browser so I can physically see that yes that’s the output I want, before writing the function that will produce it?

I really want to get into TDD, but manipulating html, I fear the tests will be harder to write than the code.

jonydude
join shbcf.ru