testFactory() — astro Function Reference
Architecture documentation for the testFactory() function in test-utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD e27f6887_ea47_dd44_7933_5faa0f6bcf4d["testFactory()"] 2ca394f6_a63d_3921_1f12_c5a979ea0039["test-utils.js"] e27f6887_ea47_dd44_7933_5faa0f6bcf4d -->|defined in| 2ca394f6_a63d_3921_1f12_c5a979ea0039 4471adac_6b72_7031_4587_e50c8db5a233["prepareTestFactory()"] 4471adac_6b72_7031_4587_e50c8db5a233 -->|calls| e27f6887_ea47_dd44_7933_5faa0f6bcf4d 019f0b9c_f317_8761_c903_c4c521c6970a["loadFixture()"] e27f6887_ea47_dd44_7933_5faa0f6bcf4d -->|calls| 019f0b9c_f317_8761_c903_c4c521c6970a style e27f6887_ea47_dd44_7933_5faa0f6bcf4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/e2e/test-utils.js lines 45–60
export function testFactory(testFile, inlineConfig) {
let fixture;
const test = testBase.extend({
astro: async ({}, use) => {
fixture = fixture || (await loadFixture(testFile, inlineConfig));
await use(fixture);
},
});
test.afterEach(() => {
fixture.resetAllFiles();
});
return test;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does testFactory() do?
testFactory() is a function in the astro codebase, defined in packages/astro/e2e/test-utils.js.
Where is testFactory() defined?
testFactory() is defined in packages/astro/e2e/test-utils.js at line 45.
What does testFactory() call?
testFactory() calls 1 function(s): loadFixture.
What calls testFactory()?
testFactory() is called by 1 function(s): prepareTestFactory.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free