Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

313
Views
Reaccionar indicadores de variables ambientales en el archivo de prueba pero no se muestra en la consola como error

Tengo una variable ambiental que proviene de un archivo .env que se compila a partir de un env.config.js . He usado este enfoque: https://www.freecodecamp.org/news/how-to-implement-runtime-environment-variables-with-create-react-app-docker-and-nginx-7f9d42a91d70/

Estoy usando de la siguiente manera:

 const url = `${window._env_.REACT_APP_URL}`

Todo parece estar funcionando, sin embargo, en mi consola de prueba, Jest marca diciendo:

 TypeError: Cannot read property 'REACT_APP_URL' of undefined

¿Alguna idea de por qué?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!