[{"data":1,"prerenderedAt":140},["ShallowReactive",2],{"term-c\u002Fcoverage":3,"related-c\u002Fcoverage":124},{"id":4,"title":5,"acronym":6,"body":7,"category":105,"description":106,"difficulty":107,"extension":108,"letter":109,"meta":110,"navigation":68,"path":111,"related":112,"seo":118,"sitemap":119,"stem":122,"subcategory":6,"__hash__":123},"terms\u002Fterms\u002Fc\u002Fcoverage.md","Coverage",null,{"type":8,"value":9,"toc":99},"minimark",[10,15,19,23,26,30,88,92,95],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Coverage tells you what percentage of your code is actually tested. 80% coverage means 80% of your lines are touched by at least one test. It sounds great until you realize the untested 20% is where all the bugs live.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Code coverage measures how much of your source code is executed by your test suite. Types include line coverage, branch coverage, function coverage, and statement coverage. High coverage doesn't guarantee correctness — it just means code was executed.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Run tests with coverage report\nvitest run --coverage\n\n# Output:\n# File         | % Stmts | % Branch | % Funcs | % Lines\n# auth.ts      |   92.31 |    87.50 |  100.00 |   92.31\n","bash","",[38,39,40,49,63,70,76,82],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Run tests with coverage report\n",[41,50,52,56,60],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","vitest",[41,57,59],{"class":58},"sfazB"," run",[41,61,62],{"class":58}," --coverage\n",[41,64,66],{"class":43,"line":65},3,[41,67,69],{"emptyLinePlaceholder":68},true,"\n",[41,71,73],{"class":43,"line":72},4,[41,74,75],{"class":47},"# Output:\n",[41,77,79],{"class":43,"line":78},5,[41,80,81],{"class":47},"# File         | % Stmts | % Branch | % Funcs | % Lines\n",[41,83,85],{"class":43,"line":84},6,[41,86,87],{"class":47},"# auth.ts      |   92.31 |    87.50 |  100.00 |   92.31\n",[11,89,91],{"id":90},"when-youll-hear-this","When You'll Hear This",[16,93,94],{},"\"We require 80% coverage before merging.\" \u002F \"High coverage doesn't mean your tests are actually good.\"",[96,97,98],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":100},[101,102,103,104],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":90,"depth":51,"text":91},"testing","Coverage tells you what percentage of your code is actually tested. 80% coverage means 80% of your lines are touched by at least one test.","beginner","md","c",{},"\u002Fterms\u002Fc\u002Fcoverage",[113,114,115,116,117],"Code Coverage","Test Suite","Jest","Vitest","CI Testing",{"title":5,"description":106},{"changefreq":120,"priority":121},"weekly",0.7,"terms\u002Fc\u002Fcoverage","mlshOBMOXRY9s-1dk-ORMiKHnTseA_wj28SqkkWe2LE",[125,128,131,134,137],{"title":117,"path":126,"acronym":6,"category":105,"difficulty":107,"description":127},"\u002Fterms\u002Fc\u002Fci-testing","CI Testing is running all your tests automatically every time someone pushes code.",{"title":113,"path":129,"acronym":6,"category":105,"difficulty":107,"description":130},"\u002Fterms\u002Fc\u002Fcode-coverage","Code coverage is the report card for your tests. It shows you a map of your code and highlights which lines got tested (green) and which didn't (red).",{"title":115,"path":132,"acronym":6,"category":105,"difficulty":107,"description":133},"\u002Fterms\u002Fj\u002Fjest","Jest is the most popular JavaScript testing framework.",{"title":114,"path":135,"acronym":6,"category":105,"difficulty":107,"description":136},"\u002Fterms\u002Ft\u002Ftest-suite","A test suite is just a collection of related tests grouped together.",{"title":116,"path":138,"acronym":6,"category":105,"difficulty":107,"description":139},"\u002Fterms\u002Fv\u002Fvitest","Vitest is a blazing-fast test runner built on Vite. If Jest is the reliable sedan, Vitest is the electric sports car — same driving experience, 10x faster.",1776518270617]