Skip to content

Startup message "is responding with HTTP status code NaN" #349

@MikeMcC399

Description

@MikeMcC399

Bug report

Configuration

start-server-and-test 1.15.3
Ubuntu 22.04 and Node.js 18.13.0
Windows 11 and Node.js 18.13.0

Problem description

start-server-and-test

When running a script defined as:

start-server-and-test start-server http://localhost:8000 cypress:run

the following message is output:

1: starting server using command "npm run start-server"
and when url "[ 'http://localhost:8000' ]" is responding with HTTP status code NaN
running tests using command "npm run cypress:run"

This is a regression from version 1.14.0 where the message was
" ... is responding with HTTP status code 200"

i.e. 200 has been replaced by NaN.

Expected behavior

start-server-and-test v1.15.0 introduced the --expect parameter, however there is no statement in README: expected to say that this parameter is required, so if the default HTTP code is still 200 then the startup message should also list 200 and not NaN (Not a Number) if no --expect parameter is supplied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions