1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-start-testing-livewire-components-with-basic-tests-that-makes-sure-components-render-accurately.md
2022-03-26 20:24:23 +01:00

11 lines
No EOL
702 B
Markdown

---
title: 'You can start testing Livewire components with basic tests that makes sure components render accurately'
tweet_id: '1507455550027563009'
thread_slug: weekly-thread-2022-12
author_username: ryangjchandler
images:
- 'https://pbs.twimg.com/media/FOPGoowXEAE883f.jpg'
created_at: 2022-03-25T20:33:04+00:00
slug: you-can-start-testing-livewire-components-with-basic-tests-that-makes-sure-components-render-accurately
---
🔥 When you're testing your @LaravelLivewire components, one of the simplest tests you can add is a "can this component be mounted" test. This is one of the best ways to test your the mounting process in isolation and ensuring the component renders the view correctly.