I'm using react-create-app for my application. For tests I would need to set global headers for requests.. So when I'm caling REST API, I could send test users to REST API. I would like to set headers per test based, or globally.
I read react-create-app is using Jest for running tests, also jsdom. I wonder if is it possible to manipulate headers for test purposes?
Aucun commentaire:
Enregistrer un commentaire