To run component tests, Cypress needs you to configure the dev-server:start event.

Please update this file: /path/to/plugins/file.js

module.exports = (on, config) => {
  on('dev-server:start', () => {
    // start dev server here
    return startDevServer(...)
  }
}

https://on.cypress.io/component-testing