prepareTestFactory() — astro Function Reference
Architecture documentation for the prepareTestFactory() function in test-utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 635fda1a_dabb_b7fb_8ae7_bd460a659a81["prepareTestFactory()"] 6edce826_f6ba_1758_b163_54ce397ea33f["test-utils.js"] 635fda1a_dabb_b7fb_8ae7_bd460a659a81 -->|defined in| 6edce826_f6ba_1758_b163_54ce397ea33f acd4a219_f994_eae3_65f9_a97d2d3c7f3c["testFactory()"] 635fda1a_dabb_b7fb_8ae7_bd460a659a81 -->|calls| acd4a219_f994_eae3_65f9_a97d2d3c7f3c style 635fda1a_dabb_b7fb_8ae7_bd460a659a81 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/alpinejs/test/test-utils.js lines 48–64
export function prepareTestFactory(opts) {
const test = testFactory(opts);
let devServer;
test.beforeAll(async ({ astro }) => {
devServer = await astro.startDevServer();
});
test.afterAll(async () => {
await devServer.stop();
});
return {
test,
};
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does prepareTestFactory() do?
prepareTestFactory() is a function in the astro codebase, defined in packages/integrations/alpinejs/test/test-utils.js.
Where is prepareTestFactory() defined?
prepareTestFactory() is defined in packages/integrations/alpinejs/test/test-utils.js at line 48.
What does prepareTestFactory() call?
prepareTestFactory() calls 1 function(s): testFactory.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free