Write a Jest Test for Wire Service | Lightning Web Components Tests

Опубликовано: 05 Ноябрь 2022
на канале: Saurabh Infotech Solutions
3,001
4

#salesforce
#trailhead
#salestraining

Lightning Web Components Tests

Write a Jest Test for Wire Service
Learning Objectives
After completing this unit, you'll be able to:

List the three primary adapters for wire services.
Explain mocking data for the wire service.
Understand reactive variables and their effect.
Testing @Wire Service
Lightning web components use a reactive wire service built on Lightning Data Service to read Salesforce data. Components use @wire in their JavaScript class to read data from one of the wire adapters in the lightning/ui*Api modules.

The wire service is reactive in part because it supports reactive variables. Reactive variables are prefixed with a $. When a reactive variable changes, the wire service provisions new data. If the data exists in the client cache, a network request may not be involved.


Смотрите видео Write a Jest Test for Wire Service | Lightning Web Components Tests онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Saurabh Infotech Solutions 05 Ноябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,001 раз и оно понравилось 4 людям.