suggestion: test code blocks in deno test --doc
#23669
Labels
suggestion
suggestions for new features (yet to be agreed)
deno test --doc
#23669
Currently,
deno test --doc
type-checks code blocks in JSDoc and Markdown. It'd be cool if it could run tests on them, too. Doing so would ensure that code blocks behave as expected when copied and run. Taken a step further, this could completely omit the need for test files for simple APIs. This would kill two birds with one stone and save developers much time. I'm playing with this idea in denoland/std#4669.The text was updated successfully, but these errors were encountered: