Name Description Size Coverage
doctest.ts `@puppeteer/doctest` tests `@example` code within a JavaScript file. There are a few reasonable assumptions for this tool to work: 1. Examples are written in block comments, not line comments. 2. Examples do not use packages that are not available to the file it exists in. (Note the package will always be available). 3. Examples are strictly written between code fences (\`\`\`) on separate lines. For example, \`\`\`console.log(1)\`\`\` is not allowed. 4. Code is written using ES modules. By default, code blocks are interpreted as JavaScript. Use \`\`\`ts to change the language. In general, the format is "\`\`\`[language] [ignore] [fail]". If there are several code blocks within an example, they are concatenated. 9866 -