loadFixture() — astro Function Reference
Architecture documentation for the loadFixture() function in test-utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 0b7a6b11_e910_da4b_c617_1880167f44ef["loadFixture()"] ff334e41_2760_839e_fc38_ab9318c18dfc["test-utils.js"] 0b7a6b11_e910_da4b_c617_1880167f44ef -->|defined in| ff334e41_2760_839e_fc38_ab9318c18dfc dd4f09ce_3fd7_8295_f616_8876cda4555c["loadFixture()"] 0b7a6b11_e910_da4b_c617_1880167f44ef -->|calls| dd4f09ce_3fd7_8295_f616_8876cda4555c style 0b7a6b11_e910_da4b_c617_1880167f44ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/node/test/test-utils.js lines 11–20
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/node/test/test-utils.js.
Where is loadFixture() defined?
loadFixture() is defined in packages/integrations/node/test/test-utils.js at line 11.
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