Skip to content

[Question] Does this work with webpack-dev-server ? #4

Closed
@remy-poirier

Description

@remy-poirier

Thank you for taking time to open a new issue. Please answer a few questions to help us fix it faster. You can delete text that is irrelevant to the issue.

Is this a bug report or a feature request?

It's a question

Description

Hi, I am trying to integrate your module, I find it in Cypress documentation.
I have a React Application build with Webpack, I use Webpack-dev-server, in my script I have :
"ci": "start-server-and-test start http://localhost:8080 cy:open",

Where start simply start my server by doing :
"start": "webpack-dev-server --watch",

And it seems to work fine, except that it doesn't wait the end of bundling before launching the test command, here is what happen in the console :

starting server using command "npm run start" and when url "http://localhost:8080" is responding running tests using command "cy:open"

webpack-dev-server --watch
http://localhost:8080/
webpack result is served from /
content is served from C:\Dev\workspace\setup\react

Here it should wait the bundle to be done, but instead of this, it launches the next command

cypress open

Do you have any idea of how I can accomplish what I want to do ?
Temporarily I set a sleep of 30s in my test runner but it's not maintainable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions