0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

test: system test add logging for debuggin

This commit is contained in:
Juan Picado 2021-10-24 10:15:54 +02:00
parent 80dca8d96e
commit 57bd5169f9

View file

@ -1,4 +1,3 @@
import express from 'express';
import request from 'request';
import rimraf from 'rimraf';
@ -37,9 +36,13 @@ describe('basic system test', () => {
test('server should respond on /', (done) => {
request(
{
url: 'http://localhost:' + port + '/'
url: 'http://localhost:' + port + '/',
timeout: 6000,
},
function (err, res, body) {
// TEMP: figure out why is flacky, pls remove when is stable.
// eslint-disable-next-line no-console
console.log('server should respond on / error', err);
expect(err).toBeNull();
expect(body).toMatch(/Verdaccio/);
done();
@ -50,7 +53,7 @@ describe('basic system test', () => {
test('server should respond on /___not_found_package', (done) => {
request(
{
url: `http://localhost:${port}/___not_found_package`
url: `http://localhost:${port}/___not_found_package`,
},
function (err, res, body) {
expect(err).toBeNull();