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

305
Views
¿Cómo ejecutar condicionalmente un script en react.js?

Actualmente, mi script de inicio de reacción es el siguiente: env-cmd -f .env.local react-scripts start . Quiero ejecutar un script de prueba antes de esto y, si falla, no ejecute lo anterior. He intentado "start": "node src/test/test.js --check . && env-cmd -f .env.local react-scripts start" pero cuando aparece algún error en mi test.js (que es manejado usando try-catch ), el script de inicio aún se ejecuta, lo cual no quiero que lo haga.

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!