Moja lekcja

 0    6 fiszek    salesforcesf
ściągnij mp3 drukuj graj sprawdź się
 
Pytanie język polski Odpowiedź język polski
Jaka metoda w teście Jest w LWC pozwala na reset DOM?
rozpocznij naukę
afterEach()
What describes a single test the expected behavior of that function?
rozpocznij naukę
it block
How to create test component in Jest lwc test?
rozpocznij naukę
createElement("nazwa-komponentu", {funkcja z it)
how to add test element to the DOM?
rozpocznij naukę
appendChild (document. body. appendChild(element);)
Jak wyglądają asserty w lwc Jest?
rozpocznij naukę
expect eg expect(div. textContent). toBe("Hello, World!");
To ensure that your test waits for updates to complete before evaluating the result use
rozpocznij naukę
async resolve of promise

Musisz się zalogować, by móc napisać komentarz.