I'd like to use Jest to snapshot-test my angular 1.x directives. I've already got a working test environment with jest, but I'm not sure how (and if I can) snapshot test my directives/components.
I don't think I can use the renderer object used in this example (looks like a react-specific object) http://ift.tt/2svrnZv and I'm not sure how to use the .toJSON() function in order to serialize my directive/components.
This is the only link I've found on Jest+Angular 1.x usage: http://ift.tt/2hBSUQe and I can't find any answer about snapshot testing.
Thanks in advance,
Federico
Aucun commentaire:
Enregistrer un commentaire