Home / Function/ renderConfigChecks() — astro Function Reference

renderConfigChecks() — astro Function Reference

Architecture documentation for the renderConfigChecks() function in render.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  9f3d6dd5_97cb_6055_af4b_2c5383432d5a["renderConfigChecks()"]
  da471585_45ba_f17c_0b97_be541ed8900d["render.test.js"]
  9f3d6dd5_97cb_6055_af4b_2c5383432d5a -->|defined in| da471585_45ba_f17c_0b97_be541ed8900d
  style 9f3d6dd5_97cb_6055_af4b_2c5383432d5a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/markdoc/test/render.test.js lines 156–168

function renderConfigChecks(html) {
	const { document } = parseHTML(html);
	const h2 = document.querySelector('h2');
	assert.equal(h2.textContent, 'Post with config');
	const textContent = html;

	assert.notEqual(textContent.includes('Hello'), true);
	assert.equal(textContent.includes('Hola'), true);
	assert.equal(textContent.includes('Konnichiwa'), true);

	const runtimeVariable = document.querySelector('#runtime-variable');
	assert.equal(runtimeVariable?.textContent?.trim(), 'working!');
}

Domain

Subdomains

Frequently Asked Questions

What does renderConfigChecks() do?
renderConfigChecks() is a function in the astro codebase, defined in packages/integrations/markdoc/test/render.test.js.
Where is renderConfigChecks() defined?
renderConfigChecks() is defined in packages/integrations/markdoc/test/render.test.js at line 156.

Analyze Your Own Codebase

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

Try Supermodel Free