Home / Function/ renderNullChecks() — astro Function Reference

renderNullChecks() — astro Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/integrations/markdoc/test/render.test.js lines 135–142

function renderNullChecks(html) {
	const { document } = parseHTML(html);
	const h2 = document.querySelector('h2');
	assert.equal(h2.textContent, 'Post with render null');
	assert.equal(h2.parentElement?.tagName, 'BODY');
	const divWrapper = document.querySelector('.div-wrapper');
	assert.equal(divWrapper.textContent, "I'm inside a div wrapper");
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free