Salesforce Developer Tutorial (LWC) - The Complete Guide to LWC Jest Tests in 2023

In this episode we go over absolutely everything you need to know about writing jest tests for your Lightning Web Components! Schedule Salesforce consulting time with me here: https://calendly.com/codingwiththefor... Please consider donating to help continue to improve the content produced for Coding With The Force: https://www.paypal.com/donate?busines... Get Coding With The Force Merch Here: https://my-store-d20559.creator-sprin... Github Wiki: https://github.com/Coding-With-The-Fo... Github Code Examples: https://github.com/Coding-With-The-Fo... Information on Promises: https://www.freecodecamp.org/news/jav... Follow all of our social media here: Patreon:   / codingwiththeforce   Github: https://github.com/Coding-With-The-Force Facebook:   / codingwiththeforce   Twitter:   / coding_force   Instagram:   / codingwiththeforce   Salesforce development books I recommend: Advanced Apex Programming: https://amzn.to/3lXi8to Salesforce Lightning Platform Enterprise Architecture: https://amzn.to/2R0D4BQ Mastering Salesforce DevOps: https://amzn.to/3lTtTRN Good Non-SF Specific Development Books: Clean Code: https://amzn.to/35PuMDU Clean Architecture: https://amzn.to/35FYo6A ----------------------------------------------------------------------------------------------------------------------- Table of Contents: 0:00 - Intro 0:59 - What are Jest Tests and why write them? 2:51 - How to setup your machine to run Jest Tests 5:13 - How to setup your SF Project to run Jest Tests 11:07 - Learning the basics of Jest Tests 18:11 - How to run Jest Tests 24:00 - How to test LWC Bind Variables 27:57 - The beforeEach method 37:41 - How to test Events and Conditional Rendering 51:11 - The afterEach method 56:08 - How to test Iterators 1:09:50 - How to test Apex wire methods 1:38:26 - How to test Standard wire methods 1:48:57 - How to test Apex Method Calls 2:06:59 - How to test a Child LWC 2:15:23 - Outro DISCLAIMER: The views and ideas expressed on this YouTube channel and blog are based on past development experiences and may not always work for your particular scenarios. The advice in these videos may also become outdated as technology advances. They should be used as examples for educational purposes only. Using any shown solutions in your own org is not advisable since they are example scenarios. #salesforce #salesforcedeveloper #salesforceadmin

Salesforce Developer LWC Tutorial - The Beginner's Guide to Lightning Web Components in 2026
▶︎

Salesforce Developer LWC Tutorial - The Beginner's Guide to Lightning Web Components in 2026

Salesforce Developer Tutorial - The Complete Guide to Apex Tests in 2024
▶︎

Salesforce Developer Tutorial - The Complete Guide to Apex Tests in 2024

codeLive: Let's Explore the Salesforce GraphQL APIs
▶︎

codeLive: Let's Explore the Salesforce GraphQL APIs

Salesforce Developer Tutorial - The Complete Guide To Apex Triggers in 2022
▶︎

Salesforce Developer Tutorial - The Complete Guide To Apex Triggers in 2022

Django Crash Course | Build Your First Web App Fast Chapter 1 (Beginner Tutorial 2026)
▶︎

Django Crash Course | Build Your First Web App Fast Chapter 1 (Beginner Tutorial 2026)

Hands-On Power BI Tutorial 📊Beginner to Pro [Full Course] ⚡
▶︎

Hands-On Power BI Tutorial 📊Beginner to Pro [Full Course] ⚡

Salesforce LWC Master Class (Ep. 1)  - What are Lightning Web Components and When to use them
▶︎

Salesforce LWC Master Class (Ep. 1) - What are Lightning Web Components and When to use them

Salesforce Developer Tutorial (LWC) - The Complete Guide to LWC Lifecycle Hooks
▶︎

Salesforce Developer Tutorial (LWC) - The Complete Guide to LWC Lifecycle Hooks

Complete GitHub Actions Course - From BEGINNER to PRO
▶︎

Complete GitHub Actions Course - From BEGINNER to PRO

Build a Complete Medical Chatbot with LLMs, LangChain, Pinecone, Flask & AWS 🔥
▶︎

Build a Complete Medical Chatbot with LLMs, LangChain, Pinecone, Flask & AWS 🔥

Salesforce Development Tutorial - A Complete Guide To Asynchronous Apex in Salesforce
▶︎

Salesforce Development Tutorial - A Complete Guide To Asynchronous Apex in Salesforce

How to Start Coding | Programming for Beginners | Learn Coding | Intellipaat
▶︎

How to Start Coding | Programming for Beginners | Learn Coding | Intellipaat

Full Archon Guide - Build AI Coding Harnesses That Actually Ship (LIVE)
▶︎

Full Archon Guide - Build AI Coding Harnesses That Actually Ship (LIVE)

How to use GitHub Copilot (the complete beginner's guide)
▶︎

How to use GitHub Copilot (the complete beginner's guide)

Simple Code, High Performance
▶︎

Simple Code, High Performance

Salesforce Development (LWC) : Creating a configurable Lightning Web Component using Custom Metadata
▶︎

Salesforce Development (LWC) : Creating a configurable Lightning Web Component using Custom Metadata

Charles Harris On How To Handle Concentrated Positions With Conviction | Investing With IBD
▶︎

Charles Harris On How To Handle Concentrated Positions With Conviction | Investing With IBD

Beginner to T-SQL [Full Course]
▶︎

Beginner to T-SQL [Full Course]

Salesforce Development Tutorial - A Complete Guide to Exception Handling in Apex and LWC's
▶︎

Salesforce Development Tutorial - A Complete Guide to Exception Handling in Apex and LWC's

Data Analysis with Python: Part 4 of 6 - Analyzing tabular data with Pandas
▶︎

Data Analysis with Python: Part 4 of 6 - Analyzing tabular data with Pandas