Skip to content

Property 'element' does not exist on type 'ExpectStatic' #6965

@Pinakin-Desai-HBK

Description

@Pinakin-Desai-HBK

Describe the bug

Installed the latest vitest (2.1.5) but getting the following error - Property 'element' does not exist on type 'ExpectStatic'.

This was reported previously but seemed to have been fixed - #4273

Test:
image

package.json:
image

vitest:
image

Reproduction

Install the latest vitest and try to access the element property of expect.

System Info

vitest 2.1.5

Used Package Manager

npm

Validations

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