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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom devServer documentation #4613

Open
dwhieb opened this issue Jul 19, 2022 · 1 comment
Open

custom devServer documentation #4613

dwhieb opened this issue Jul 19, 2022 · 1 comment

Comments

@dwhieb
Copy link

dwhieb commented Jul 19, 2022

Subject

devServer option for component testing

Description

In the current version of the component testing documentation about custom dev servers, it says:

A custom function can be passed into the devServer option, which allows the use of other dev servers not provided by Cypress out of the box. These can be from the Cypress community, preview builds not included with the app, or a custom one you create.

The function's signature takes in a Cypress Configuration object as its only parameter and returns either an instance of a devServer or a promise that resolves to a devServer instance.

However, I can't find any documentation about what the dev server is supposed to look like. The example returns an object with a port option and close method, rather than a Node Server instance. What are the requirements for the devServer instance?

For context, I'm using a custom dev server because my app doesn't use a framework.

Thanks!

@willoliveira-air
Copy link

+1

The documentation is pretty null explaining the necessary steps for a custom dev server.

I'm struggling a little bit to setup a new component testing strategy using microbundle and rollup.
I would like to check if Cypress has any ideas or plans to start covering them or at least improving the way of custom server works.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants