How to Write Blazor Unit Tests With bUnit and xUnit

You've been building Blazor applications and the voice in the back of your head is reminding you that you need to write tests. But how? What tools do we have access to in order to unit test Blazor components? Let's dive into bUnit and xUnit! Have you subscribed to my weekly newsletter yet? A 5-minute read every weekend, right to your inbox, so you can start your weekend learning off strong: https://subscribe.devleader.ca Check out more Dev Leader content (including full in-depth articles with source code examples) here: https://linktr.ee/devleader Social Media: Blog: https://www.devleader.ca/ Newsletter: https://www.devleader.ca/newsletter TikTok:   / devleader   LinkedIn:   / nickcosentino   Threads: threads.net/@dev.leader Twitter:   / devleaderca   Facebook:   / devleaderca   Instagram:   / dev.leader   GitHub: https://github.com/ncosentino/ Twitch:   / ncosentino   YouTube:    / @devleader   Affiliations & Products/Services That I Love: RackNerd: https://my.racknerd.com/aff.php?aff=9013 SparkLoop: https://dash.sparkloop.app/signup?aff... Opus Clip: https://opus.pro/?via=2f9e97 Newegg: https://click.linksynergy.com/fs-bin/... Bulk Supplements: https://glnk.io/63qn/devleader #dotnet #dotnetcore #aspnetcore #blazor #bunit #xunit