loadFixture() — astro Function Reference
Architecture documentation for the loadFixture() function in test-utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 5ab044f2_ed09_99b6_2b30_c55f0f9a239c["loadFixture()"] 4b1e6526_afae_1cc3_9eb4_67fe4c476b26["test-utils.js"] 5ab044f2_ed09_99b6_2b30_c55f0f9a239c -->|defined in| 4b1e6526_afae_1cc3_9eb4_67fe4c476b26 dd4f09ce_3fd7_8295_f616_8876cda4555c["loadFixture()"] 5ab044f2_ed09_99b6_2b30_c55f0f9a239c -->|calls| dd4f09ce_3fd7_8295_f616_8876cda4555c style 5ab044f2_ed09_99b6_2b30_c55f0f9a239c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/sitemap/test/test-utils.js lines 8–17
export function loadFixture(inlineConfig) {
if (!inlineConfig?.root) throw new Error("Must provide { root: './fixtures/...' }");
// resolve the relative root (i.e. "./fixtures/tailwindcss") to a full filepath
// without this, the main `loadFixture` helper will resolve relative to `packages/astro/test`
return baseLoadFixture({
...inlineConfig,
root: new URL(inlineConfig.root, import.meta.url).toString(),
});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does loadFixture() do?
loadFixture() is a function in the astro codebase, defined in packages/integrations/sitemap/test/test-utils.js.
Where is loadFixture() defined?
loadFixture() is defined in packages/integrations/sitemap/test/test-utils.js at line 8.
What does loadFixture() call?
loadFixture() calls 1 function(s): loadFixture.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free