feat(test): add support for type checking documentation (#10521)

This commit adds support for type checking codeblocks in the JS doc 
comments.
This commit is contained in:
Casper Beyer 2021-05-11 07:54:39 +08:00 committed by GitHub
parent c44e53a5b6
commit 36c5461129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 188 additions and 15 deletions

View file

@ -2580,6 +2580,12 @@ mod integration {
output: "test/deno_test.out",
});
itest!(doc {
args: "test --doc --allow-all test/doc.ts",
exit_code: 1,
output: "test/doc.out",
});
itest!(allow_all {
args: "test --unstable --allow-all test/allow_all.ts",
exit_code: 0,