index.ts 341 B

1234567891011
  1. import { startDevServer } from '@cypress/vite-dev-server'
  2. export default function (
  3. on: Cypress.PluginEvents,
  4. config: Cypress.PluginConfigOptions
  5. ): void | Cypress.ConfigOptions | Promise<Cypress.ConfigOptions> {
  6. on('dev-server:start', async (options: Cypress.DevServerConfig) =>
  7. startDevServer({ options })
  8. )
  9. return config
  10. }