Conditional Rendering Testing | LWC Testing with Jest Session 3

preview_player
Показать описание
In this session you will learn the following topics

1) How to create a test file
2) How to run a test file
3) How to test Conditional rendering
4) How to test on change event
5) How to use beforeEach block

LINKS AND CODE USED IN THIS VIDEO
======================
JEST WEBSITE

FOR COOL STUFF OF LIGHTNING WEB COMPONENT

CODE

FOLLOW ME -
TWITTER - @karkra_nikhil

This is especially for all the students and IT professional who wants to make their career in Salesforce.

PLEASE DO LIKE, SHARE AND SUBSCRIBE THIS VIDEO WITH ALL YOUR STUDENT NETWORK, IT NETWORK AND SALESFORCE NETWORK.

Let everyone learn Salesforce and become a part of our #Ohana.

#testing #jest #lwc
Рекомендации по теме
Комментарии
Автор

Hi Nikhil,
Very Useful,
Thank you for sharing😊🤝

sathishbatta
Автор

You forgot to return the promise for the second test from within the callback, which is why the test passed without any issues and so quickly. It should pass anyway, but the placement of the return statement is wrong and the second test essentially isn't testing anything.

hardit
Автор

You did not include session 2 in the playlist

rajatjadam
Автор

Hi Nikhil, can you please tell me how to assign value to a property which is being checked at the start of screen loading....

divydubey
Автор

How to identify input field when there are multiple on the layout ?

manpreetkour