Moja lekcja

 0    6 fiche    salesforcesf
Télécharger mP3 Imprimer jouer consultez
 
question język polski réponse język polski
Jaka metoda w teście Jest w LWC pozwala na reset DOM?
commencer à apprendre
afterEach()
What describes a single test the expected behavior of that function?
commencer à apprendre
it block
How to create test component in Jest lwc test?
commencer à apprendre
createElement("nazwa-komponentu", {funkcja z it)
how to add test element to the DOM?
commencer à apprendre
appendChild (document. body. appendChild(element);)
Jak wyglądają asserty w lwc Jest?
commencer à apprendre
expect eg expect(div. textContent). toBe("Hello, World!");
To ensure that your test waits for updates to complete before evaluating the result use
commencer à apprendre
async resolve of promise

Vous devez vous connecter pour poster un commentaire.