testRehype() — astro Function Reference
Architecture documentation for the testRehype() function in astro-markdown-plugins.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 57ba649d_a0fd_b9ea_1e09_70691a5969dd["testRehype()"] a3b948f7_bd67_8907_2296_e4b82b503528["astro-markdown-plugins.test.js"] 57ba649d_a0fd_b9ea_1e09_70691a5969dd -->|defined in| a3b948f7_bd67_8907_2296_e4b82b503528 style 57ba649d_a0fd_b9ea_1e09_70691a5969dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/astro-markdown-plugins.test.js lines 151–155
function testRehype(html, headingId) {
const $ = cheerio.load(html);
assert.equal($(headingId).length, 1);
assert.ok($(headingId).hasClass('title'));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testRehype() do?
testRehype() is a function in the astro codebase, defined in packages/astro/test/astro-markdown-plugins.test.js.
Where is testRehype() defined?
testRehype() is defined in packages/astro/test/astro-markdown-plugins.test.js at line 151.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free