[{"data":1,"prerenderedAt":77},["ShallowReactive",2],{"term-t\u002Ftest-driven-development":3,"related-t\u002Ftest-driven-development":60},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":53,"sitemap":54,"stem":57,"subcategory":58,"__hash__":59},"terms\u002Fterms\u002Ft\u002Ftest-driven-development.md","Test-Driven Development","TDD",{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Test-Driven Development is a discipline where you write your tests before your actual code. You describe what success looks like first, then make it happen. It forces you to think about your code's behavior before you write a single line of logic.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"TDD is a development process that relies on repeating a short cycle: write a test that defines a desired improvement or new function, run the test (it fails — red), write the minimum code to pass the test (green), then refactor the code while keeping tests passing.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"Does your team do test-driven development?\" \u002F \"Test-driven development makes refactoring way less scary.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"testing","Test-Driven Development is a discipline where you write your tests before your actual code.","intermediate","md","t",{},true,"\u002Fterms\u002Ft\u002Ftest-driven-development",[6,49,50,51,52],"Red-Green-Refactor","Unit Test","BDD","Assertion",{"title":5,"description":41},{"changefreq":55,"priority":56},"weekly",0.7,"terms\u002Ft\u002Ftest-driven-development",null,"zNtsXSHftsJSk57SnoiH21WcMxXC0v1pKsvoP5360fk",[61,65,68,71,74],{"title":52,"path":62,"acronym":58,"category":40,"difficulty":63,"description":64},"\u002Fterms\u002Fa\u002Fassertion","beginner","An assertion is your test saying 'I DEMAND this is true!'. It's you checking that the result is what you expected.",{"title":51,"path":66,"acronym":51,"category":40,"difficulty":42,"description":67},"\u002Fterms\u002Fb\u002Fbdd","BDD is like writing your tests in plain English so your non-coder boss can also understand them.",{"title":49,"path":69,"acronym":58,"category":40,"difficulty":63,"description":70},"\u002Fterms\u002Fr\u002Fred-green-refactor","Red-Green-Refactor is the TDD dance: Red means write a test that FAILS (it's red in the output).",{"title":6,"path":72,"acronym":6,"category":40,"difficulty":42,"description":73},"\u002Fterms\u002Ft\u002Ftdd","TDD means you write the test BEFORE you write the code.",{"title":50,"path":75,"acronym":58,"category":40,"difficulty":63,"description":76},"\u002Fterms\u002Fu\u002Funit-test","A unit test is like checking that one single LEGO brick isn't broken before you use it in your big castle.",1776518318537]