-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
deno test should run jsdoc example code #4716
Comments
@ry Can I work on this? |
@humancalico Sure go for it. I'd start by defining an internal rust API for getting all of the code examples given a script's URL. Once that's working and tested, it should be just a bit more work to hook it into "deno test". |
@ry Should this be implemented directly for |
@humancalico and @ry what is the progress on this? I'm interested on working on it if nobody is on it. |
@iykekings I got sidetracked. Go ahead if you want to.😊 |
For posterity: we now support type-checking docstrings, running examples is still a TODO that @caspervonb was looking into |
I have published a module which could potentially handle this: https://deno.land/x/[email protected] A couple of improvements I would like to make, but not sure how:
|
As cargo test does. This makes example code way more robust.
We’d need a way to extract all the examples - but now that we have deno doc - this should be not too difficult.
The text was updated successfully, but these errors were encountered: