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

398
Views
Setting karma jasmine DEFAULT_TIMEOUT_INTERVAL globally

In my Angular app, I use Karma and Jasmine to run my unit tests.

I'd like to change the default timeout interval for async tests, from the 5 seconds default to, let's say, 10 seconds.

I see that you can use jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000 to accomplish it.

However, I'd like to change it globally, via some configuration file. For example in karma.conf.js but I don't see the defaultTimeoutInterval option available.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I've found the answer in the karma-jasmine GitHub repo.

It looks like the right key is timeoutInterval inside karma.conf.js:

module.exports = function(config) {
  config.set({
    client: {
      jasmine: {
        random: true,
        seed: '4321',
        oneFailurePerSpec: true,
        failFast: true,
        timeoutInterval: 10000 // <- this is what I was looking for
      }
    }
  })
}
over 4 years ago · Santiago Trujillo Report
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!