Skip to content

Error: Invalid Chai property: toBeAccessible #935

@tyteen4a03

Description

@tyteen4a03

I'm getting this error when using @sa11y/vitest: Error: Invalid Chai property: toBeAccessible

Also, TypeScript server is reporting this error: Property toBeAccessible does not exist on type Assertion<HTMLElement>

I have this in my setup script:

import { setup } from "@sa11y/vitest";

setup();

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions