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

111
Views
Mocha test with many imports takes lots of time

I have a mocha test with many imports , those imports make the test time very long (I tried a dummy test without any imports and it took only few seconds)

Here is the structure of my test - TestSpeed.test.js

import {expect} from 'chai';
// many other imports ..

describe('Test Speed', () => {

    it('Test Speed 1 equals to 1', () => {
        expect(1).to.eql(1);
    });
});

And I'm running it with the command - node mocha TestSpeed.test.js.

Is there any way to keep those imports in a cache and make the test faster? Any other idea how to make the test faster would be acceptable too.

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!