hi 👋 It seems to me that the documentation on how...
# component-testing
h
hi 👋 It seems to me that the documentation on how to use a custom "devServer" is totally wrong in the docs. I've pasted a screenshot on how it's documented, but from what I tried I can't do it like that, instead I need to do it this way:
Copy code
export default defineConfig({
  component: {
    devServer(cypressConfig) {
      return devServer({
        ...cypressConfig,
        framework: "react",
        webpackConfig,
      });
    }
  },
});
anyone else can confirm this? (I've found the example on how to do it over here: https://github.com/cypress-io/cypress/blob/b925dce224932137104f60fa7adf807fd90f848f/system-tests/project-fixtures/react/cypress-webpack-dev-server-function.config.ts)
6 Views