Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda