Skip to content

unit-test builder with vitest runner should augment types with provider #31656

@yjaaidi

Description

@yjaaidi

Command

test

Description

In Vitest 4, the import of @vitest/browse-* automatically augments the types of vitest/browser with provider's APIs specificities.

Angular CLI could either expose a vitest.config.ts using public Angular vite plugins, or in the meantime, the generator could add the provider's package to tsconfig.spec.json#compilerOptions.types or warn if it's missing or if there is a provider mismatch.

Describe the solution you'd like

No response

Describe alternatives you've considered

Using custom vitest.config.ts with Analog plugin https://github.com/analogjs/analog/tree/main/packages/vitest-angular

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions