The Wayback Machine - https://web.archive.org/web/20200704140243/https://github.com/smooth-code/jest-puppeteer/issues/341
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

jest-dev-server timeout does not clean up processes started by 'command' #341

Open
thernstig opened this issue Apr 9, 2020 · 1 comment
Open

Comments

@thernstig
Copy link

@thernstig thernstig commented Apr 9, 2020

馃悰 Bug Report

Using jest-dev-server, set a command like:

module.exports = {
  command: 'npm run start',
  launchTimeout: 1000,
}

If the timeout occurs, you get this message:

Server has taken more than 1000ms to start.

The problem here is that jest-dev-server then never sends the proper signals to the processes started by the command, meaning they get hanging. As a comparison, pressing 麓ctrl+c` after the server has started properly cleans up the resources.

To Reproduce

Add the above config and a very short launchTimeout and notice how the started command never stops (check e.g. via the ps command).

Expected behavior

jest-dev-server should send the proper signals to launched command, even after a launchTimeout occured.

@ryall
Copy link

@ryall ryall commented Apr 26, 2020

Also seeing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can鈥檛 perform that action at this time.