jeudi 12 juillet 2018

Multiple environment testing with jest

I have some environment variables in my React app placed in .env.development file, which change application logic and view, for example: REACT_APP_USER_SIGN_UP_ENABLED=true.

Can I configure Jest config or certain tests for testing each scenarios, where REACT_APP_USER_SIGN_UP_ENABLED=true and REACT_APP_USER_SIGN_UP_ENABLED=false?

Aucun commentaire:

Enregistrer un commentaire