astroComponentTest() — astro Function Reference
Architecture documentation for the astroComponentTest() function in headings.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1939ecca_4e0a_b571_4089_b392641755fc["astroComponentTest()"] 8eb7f338_d427_d8cf_1cd1_0effe3fd6b64["headings.test.js"] 1939ecca_4e0a_b571_4089_b392641755fc -->|defined in| 8eb7f338_d427_d8cf_1cd1_0effe3fd6b64 style 1939ecca_4e0a_b571_4089_b392641755fc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/markdoc/test/headings.test.js lines 226–232
function astroComponentTest(document) {
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
for (const heading of headings) {
assert.equal(heading.hasAttribute('data-custom-heading'), true);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does astroComponentTest() do?
astroComponentTest() is a function in the astro codebase, defined in packages/integrations/markdoc/test/headings.test.js.
Where is astroComponentTest() defined?
astroComponentTest() is defined in packages/integrations/markdoc/test/headings.test.js at line 226.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free