render.test.js — astro Source File
Architecture documentation for render.test.js, a javascript file in the astro codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR da471585_45ba_f17c_0b97_be541ed8900d["render.test.js"] 0a624eac_945e_c9e8_c9de_3feb9de2dd15["test-utils.js"] da471585_45ba_f17c_0b97_be541ed8900d --> 0a624eac_945e_c9e8_c9de_3feb9de2dd15 dd4f09ce_3fd7_8295_f616_8876cda4555c["loadFixture"] da471585_45ba_f17c_0b97_be541ed8900d --> dd4f09ce_3fd7_8295_f616_8876cda4555c e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"] da471585_45ba_f17c_0b97_be541ed8900d --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607 6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"] da471585_45ba_f17c_0b97_be541ed8900d --> 6b0635f9_51ea_77aa_767b_7857878e98a6 cb315bcc_59d8_fa19_79aa_5da7cd3730c5["linkedom"] da471585_45ba_f17c_0b97_be541ed8900d --> cb315bcc_59d8_fa19_79aa_5da7cd3730c5 style da471585_45ba_f17c_0b97_be541ed8900d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { parseHTML } from 'linkedom';
import { loadFixture } from '../../../astro/test/test-utils.js';
async function getFixture(name) {
return await loadFixture({
root: new URL(`./fixtures/${name}/`, import.meta.url),
});
}
describe('Markdoc - render', () => {
describe('dev', () => {
it('renders content - simple', async () => {
const fixture = await getFixture('render-simple');
const server = await fixture.startDevServer();
const res = await fixture.fetch('/');
const html = await res.text();
renderSimpleChecks(html);
await server.stop();
});
it('renders content - with partials', async () => {
const fixture = await getFixture('render-partials');
const server = await fixture.startDevServer();
const res = await fixture.fetch('/');
const html = await res.text();
renderPartialsChecks(html);
await server.stop();
});
it('renders content - with config', async () => {
const fixture = await getFixture('render-with-config');
const server = await fixture.startDevServer();
const res = await fixture.fetch('/');
const html = await res.text();
renderConfigChecks(html);
await server.stop();
});
it('renders content - with `render: null` in document', async () => {
const fixture = await getFixture('render-null');
const server = await fixture.startDevServer();
const res = await fixture.fetch('/');
const html = await res.text();
renderNullChecks(html);
await server.stop();
});
// ... (140 more lines)
Domain
Subdomains
Functions
Dependencies
- linkedom
- loadFixture
- node:test
- strict
- test-utils.js
Source
Frequently Asked Questions
What does render.test.js do?
render.test.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain, RoutingSystem subdomain.
What functions are defined in render.test.js?
render.test.js defines 7 function(s): getFixture, renderConfigChecks, renderNullChecks, renderPartialsChecks, renderSimpleChecks, renderTypographerChecks, renderWithRootFolderContainingSpace.
What does render.test.js depend on?
render.test.js imports 5 module(s): linkedom, loadFixture, node:test, strict, test-utils.js.
Where is render.test.js in the architecture?
render.test.js is located at packages/integrations/markdoc/test/render.test.js (domain: CoreAstro, subdomain: RoutingSystem, directory: packages/integrations/markdoc/test).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free