Home / Function/ getRenderedIds() — astro Function Reference

getRenderedIds() — astro Function Reference

Architecture documentation for the getRenderedIds() function in rendering.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  dcb5fbcc_be4f_aa31_26e1_d7e723656d00["getRenderedIds()"]
  e3fe003a_df56_8dae_828e_d1fb163c9c09["rendering.test.js"]
  dcb5fbcc_be4f_aa31_26e1_d7e723656d00 -->|defined in| e3fe003a_df56_8dae_828e_d1fb163c9c09
  style dcb5fbcc_be4f_aa31_26e1_d7e723656d00 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/units/render/rendering.test.js lines 273–282

function getRenderedIds(html) {
	return cheerio
		.load(
			html,
			null,
			false,
		)('*')
		.map((_, node) => node.attribs['id'])
		.toArray();
}

Subdomains

Frequently Asked Questions

What does getRenderedIds() do?
getRenderedIds() is a function in the astro codebase, defined in packages/astro/test/units/render/rendering.test.js.
Where is getRenderedIds() defined?
getRenderedIds() is defined in packages/astro/test/units/render/rendering.test.js at line 273.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free