Skip to content

Support vite v5 for component testing #28347

Closed
@MikeMcC399

Description

@MikeMcC399

What would you like?

Cypress component testing should support vite v5 (React, Vue and Svelte) - see announcement Vite 5.0 is out! Nov 16, 2023.

Why is this needed?

According to https://docs.cypress.io/guides/component-testing/overview "Vite 2+" is supported, however in practice only up to Vite v4 is supported by Cypress 13.x at this time.

export const WIZARD_DEPENDENCY_VITE = {
type: 'vite',
name: 'Vite',
package: 'vite',
installer: 'vite',
description: 'Vite is dev server that serves your source files over native ES modules',
minVersion: '^2.0.0 || ^3.0.0 || ^4.0.0',
} as const

Other

See Migration from (vite) v4 and note that the CJS Node API has been deprecated.

Metadata

Metadata

Assignees

Labels

CTIssue related to component testingtype: enhancementRequested enhancement of existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions