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:
parent
80dca8d96e
commit
57bd5169f9
1 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
import express from 'express';
|
import express from 'express';
|
||||||
import request from 'request';
|
import request from 'request';
|
||||||
import rimraf from 'rimraf';
|
import rimraf from 'rimraf';
|
||||||
|
@ -37,9 +36,13 @@ describe('basic system test', () => {
|
||||||
test('server should respond on /', (done) => {
|
test('server should respond on /', (done) => {
|
||||||
request(
|
request(
|
||||||
{
|
{
|
||||||
url: 'http://localhost:' + port + '/'
|
url: 'http://localhost:' + port + '/',
|
||||||
|
timeout: 6000,
|
||||||
},
|
},
|
||||||
function (err, res, body) {
|
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(err).toBeNull();
|
||||||
expect(body).toMatch(/Verdaccio/);
|
expect(body).toMatch(/Verdaccio/);
|
||||||
done();
|
done();
|
||||||
|
@ -50,7 +53,7 @@ describe('basic system test', () => {
|
||||||
test('server should respond on /___not_found_package', (done) => {
|
test('server should respond on /___not_found_package', (done) => {
|
||||||
request(
|
request(
|
||||||
{
|
{
|
||||||
url: `http://localhost:${port}/___not_found_package`
|
url: `http://localhost:${port}/___not_found_package`,
|
||||||
},
|
},
|
||||||
function (err, res, body) {
|
function (err, res, body) {
|
||||||
expect(err).toBeNull();
|
expect(err).toBeNull();
|
||||||
|
|
Loading…
Reference in a new issue