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

suggestion: test code blocks in deno test --doc #23669

Closed
iuioiua opened this issue May 3, 2024 · 1 comment
Closed

suggestion: test code blocks in deno test --doc #23669

iuioiua opened this issue May 3, 2024 · 1 comment
Labels
suggestion suggestions for new features (yet to be agreed)

Comments

@iuioiua
Copy link
Contributor

iuioiua commented May 3, 2024

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.

@iuioiua iuioiua added the suggestion suggestions for new features (yet to be agreed) label May 3, 2024
@lucacasonato
Copy link
Member

Duplicate of #4716

@lucacasonato lucacasonato marked this as a duplicate of #4716 Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

2 participants