prog:javascript:jest
Erreurs
- Cannot log after tests are done. Did you forget to wait for something async in your test?
Le plus simple est de mapper la console vers un mock.
const consoleSpy = jest.spyOn(console, 'log'); expect(consoleSpy).toHaveBeenCalledWith('Texte');
prog/javascript/jest.txt · Dernière modification : 2021/05/01 10:53 de root