Moja lekcja

 0    6 schede    salesforcesf
Scarica mp3 Stampa Gioca Testa il tuo livello
 
Domanda język polski Risposta język polski
Jaka metoda w teście Jest w LWC pozwala na reset DOM?
inizia ad imparare
afterEach()
What describes a single test the expected behavior of that function?
inizia ad imparare
it block
How to create test component in Jest lwc test?
inizia ad imparare
createElement("nazwa-komponentu", {funkcja z it)
how to add test element to the DOM?
inizia ad imparare
appendChild (document. body. appendChild(element);)
Jak wyglądają asserty w lwc Jest?
inizia ad imparare
expect eg expect(div. textContent). toBe("Hello, World!");
To ensure that your test waits for updates to complete before evaluating the result use
inizia ad imparare
async resolve of promise

Devi essere accedere per pubblicare un commento.