variables.test.js — astro Source File
Architecture documentation for variables.test.js, a javascript file in the astro codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 77427b3d_5398_91c2_7f64_a01f43e293de["variables.test.js"] 0a624eac_945e_c9e8_c9de_3feb9de2dd15["test-utils.js"] 77427b3d_5398_91c2_7f64_a01f43e293de --> 0a624eac_945e_c9e8_c9de_3feb9de2dd15 dd4f09ce_3fd7_8295_f616_8876cda4555c["loadFixture"] 77427b3d_5398_91c2_7f64_a01f43e293de --> dd4f09ce_3fd7_8295_f616_8876cda4555c 6f35189c_9ece_b171_44ed_6095794ea721["../dist/index.js"] 77427b3d_5398_91c2_7f64_a01f43e293de --> 6f35189c_9ece_b171_44ed_6095794ea721 e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"] 77427b3d_5398_91c2_7f64_a01f43e293de --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607 6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"] 77427b3d_5398_91c2_7f64_a01f43e293de --> 6b0635f9_51ea_77aa_767b_7857878e98a6 cb315bcc_59d8_fa19_79aa_5da7cd3730c5["linkedom"] 77427b3d_5398_91c2_7f64_a01f43e293de --> cb315bcc_59d8_fa19_79aa_5da7cd3730c5 style 77427b3d_5398_91c2_7f64_a01f43e293de fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import assert from 'node:assert/strict';
import { after, before, describe, it } from 'node:test';
import { parseHTML } from 'linkedom';
import { loadFixture } from '../../../astro/test/test-utils.js';
import markdoc from '../dist/index.js';
const root = new URL('./fixtures/variables/', import.meta.url);
describe('Markdoc - Variables', () => {
let baseFixture;
before(async () => {
baseFixture = await loadFixture({
root,
integrations: [markdoc()],
});
});
describe('dev', () => {
let devServer;
before(async () => {
devServer = await baseFixture.startDevServer();
});
after(async () => {
await devServer.stop();
});
it('has expected entry properties', async () => {
const res = await baseFixture.fetch('/');
const html = await res.text();
const { document } = parseHTML(html);
assert.equal(document.querySelector('h1')?.textContent, 'Processed by schema: Test entry');
assert.equal(document.getElementById('id')?.textContent?.trim(), 'id: entry');
assert.equal(document.getElementById('collection')?.textContent?.trim(), 'collection: blog');
});
});
describe('build', () => {
before(async () => {
await baseFixture.build();
});
it('has expected entry properties', async () => {
const html = await baseFixture.readFile('/index.html');
const { document } = parseHTML(html);
assert.equal(document.querySelector('h1')?.textContent, 'Processed by schema: Test entry');
assert.equal(document.getElementById('id')?.textContent?.trim(), 'id: entry');
assert.equal(document.getElementById('collection')?.textContent?.trim(), 'collection: blog');
});
});
});
Domain
Dependencies
- ../dist/index.js
- linkedom
- loadFixture
- node:test
- strict
- test-utils.js
Source
Frequently Asked Questions
What does variables.test.js do?
variables.test.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain.
What does variables.test.js depend on?
variables.test.js imports 6 module(s): ../dist/index.js, linkedom, loadFixture, node:test, strict, test-utils.js.
Where is variables.test.js in the architecture?
variables.test.js is located at packages/integrations/markdoc/test/variables.test.js (domain: CoreAstro, 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