samedi 27 mars 2021

how to check element is their in dom using chai for testingframework

While working with react forms i need to test whether am getting validation errors like

username should have at least 4 characters ..etc

in Jest it is pretty simple

expect(screen.getByText('Search:')).toBeInTheDocument();

how to use same in chai

Aucun commentaire:

Enregistrer un commentaire