Skip to content

Addon Vitest: Use enableCoverage API instead of re-creating Vitest instance #36215

Description

@AriPerkkio

Follow-up from #36200 (review).

Storybook 11 will drop Vitest 3 support. That allows Storybook to utilize enableCoverage API from Vitest 4. This will simplify Storybook's code coverage toggle functionality a lot, and speed up end-user experience.

} else if (currentCoverage !== coverageShouldBeEnabled) {
await this.restartVitest({ coverage: coverageShouldBeEnabled });

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    addon: vitestmaintenanceUser-facing maintenance taskssev:S4Low priority. Wait for community PRs.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions