mirror of
https://github.com/denoland/deno.git
synced 2024-12-18 13:22:55 -05:00
15fae19748
This commit makes comments in code snippets in JSDoc or markdown preserved when they are executed as tests. In particular, this is needed to get TypeScript special comments such as `@ts-ignore` or `@ts-expect-error` to work correctly. Fixes #26728
141 B
141 B
Documentation
This test case checks if @ts-expect-error
comment works as expected.
// @ts-expect-error
const a: string = 42;