File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,7 @@ title: "Documentation Tests"
3
3
oldUrl : /runtime/manual/testing/documentation/
4
4
---
5
5
6
- Deno supports _ type-checking_ your documentation examples.
7
-
8
- ::: info
9
-
10
- No runtime behavior is tested for code snippets in documentation as of now.
11
- Tracking issue:
12
- [ denoland/deno #4716 ] ( https://github.com/denoland/deno/issues/4716 )
13
-
14
- :::
6
+ Deno supports both type-checking evaluating your documentation examples.
15
7
16
8
This makes sure that examples within your documentation are up to date and
17
9
working.
@@ -60,8 +52,8 @@ type-checking the code block.
60
52
````
61
53
62
54
If this example was in a file named foo.ts, running ` deno test --doc foo.ts `
63
- will extract this example, and then type-check it as a standalone module living
64
- in the same directory as the module being documented.
55
+ will extract this example, and then both type-check and evaluate it as a
56
+ standalone module living in the same directory as the module being documented.
65
57
66
58
To document your exports, import the module using a relative path specifier:
67
59
You can’t perform that action at this time.
0 commit comments