lundi 24 avril 2017

Update jest snapshot with testPathPattern

I use the following command to run my tests located in utils file.

npm t -- --testPathPattern=utils.spec.js

If i want to update ALL my snapshots i use

npm t -- -u

But how can i update only snapshot in utils.spec.js file?

Thanks.

Aucun commentaire:

Enregistrer un commentaire