-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add JSDoc to Vitest code #5191
Labels
Comments
hey folks, I'd like to take a look on it to get familiarized with the project. would you guys have any clue? I've been searching for where jsdocs are added in |
You can add jsdoc to the type definition here vitest/packages/expect/src/types.ts Lines 116 to 164 in f969fb0
For example, /**
* write something...
* @example
* expect("xxx").toEqual("xxx") // OK
*/
toEqual: <E>(expected: E) => void |
Thanks a lot man! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Clear and concise description of the problem
Vitest functions have little or no documentation in the code, making them difficult to use and adopt.
This is what the editor shows me:

and this is what I hope to see:

Suggested solution
add JSDoc to Vitest code
Alternative
I have to go to the documentation every time I'm not sure how to use a function :/
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: