How in the world are we supposed to unit test Vue components? Is it even possible? Why, yes. Yes it is! I'll show you the full process, step by step. Not only will you learn the necessary tooling, but we'll also review the ins and outs of testing your client-side code. Have you ever wanted to use TDD for your Vue components? I'll show you how.
Overview
Syllabus
- TDD Your First Vue Component From Scratch
- Test Single File Components
- Setting Data and Asserting Styles
- Implementation Details Versus Rendered Output
- Asserting Emitted Events
- Hooking Into Laravel Mix
- TDD a Question Component With Helper Functions
- Mocking Axios Calls
- Testing Asynchronous Actions and Timers
- Cleaner Asynchronous Mocha Tests
Taught by
Jeffrey Way