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

109
Views
Error object taking too much time to throw in execution

Hope you are doing well :D

I'm asking this question because i didn't find any answer i'm using jest and i want to throw errors in specific http status error but when i do that i pass from 1.8s to 7.8s and i'm not understanding why my execution time is taking so long so of course i have the timeout jest issue coming for increasing the default timeout but i think the Error object is waiting until the jest timeout is over to throw the error .. I'm using it as this in typescript:

throw new Error('message')

enter image description here

enter image description here

about 4 years ago · Santiago Gelvez
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!