Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

113
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda