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

222
Vistas
No response from server using Jest

Jest throws "Exceeded timeout of 5000 ms" for a very simple test, this is the test code:

'use strict';

const request = require('supertest');
const app = require('./app.js'); // Link to your server file

test('Gets the test endpoint',  done => {
    // Sends GET Request to /test endpoint
    return request(app)
    .get('/search/')
    .expect(200)
  })

This is the server side code:

app.get('/search', function(req, res) {
  const rawdata = fs.readFileSync('questions.json');
  const questions = JSON.parse(rawdata);
  res.status(200).send(questions);
});

Any help greatly appreciated

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