Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug[valid-expect]: false positive when using the "branded" accessor #539

Open
eranhirsch opened this issue Sep 22, 2024 · 0 comments
Open

Comments

@eranhirsch
Copy link

eranhirsch commented Sep 22, 2024

The rule is surfacing errors for lines like:

expectTypeOf(result).branded.toEqualTypeOf<MyType>();

With the error

"Expect has unknown modifier".

The branded accessor is not documented in the vitest docs, but is supported by the library, and is part of expect-type:

https://github.com/mmkal/expect-type/blob/main/README.md?plain=1#L608-L655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant