createBasicPipeline() — astro Function Reference
Architecture documentation for the createBasicPipeline() function in test-utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c84f6efc_b46d_79aa_0b12_dafbd921a7be["createBasicPipeline()"] b0be4d0c_86b6_a283_f2af_003189bfd572["test-utils.js"] c84f6efc_b46d_79aa_0b12_dafbd921a7be -->|defined in| b0be4d0c_86b6_a283_f2af_003189bfd572 style c84f6efc_b46d_79aa_0b12_dafbd921a7be fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/units/test-utils.js lines 100–126
export function createBasicPipeline(options = {}) {
const mode = options.mode ?? 'development';
const pipeline = new Pipeline(
options.logger ?? defaultLogger,
options.manifest ?? {
rootDir: import.meta.url,
},
options.mode ?? 'development',
options.renderers ?? [],
options.resolve ?? ((s) => Promise.resolve(s)),
options.streaming ?? true,
options.adapterName,
options.clientDirectives ?? getDefaultClientDirectives(),
options.inlinedScripts ?? [],
options.compressHTML,
options.i18n,
options.middleware,
options.routeCache ?? new RouteCache(options.logging, mode),
options.site,
);
pipeline.headElements = () => ({ scripts: new Set(), styles: new Set(), links: new Set() });
pipeline.componentMetadata = () => new Map();
pipeline.getMiddleware = () => {
return NOOP_MIDDLEWARE_FN;
};
return pipeline;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does createBasicPipeline() do?
createBasicPipeline() is a function in the astro codebase, defined in packages/astro/test/units/test-utils.js.
Where is createBasicPipeline() defined?
createBasicPipeline() is defined in packages/astro/test/units/test-utils.js at line 100.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free