Home / Function/ createDevFixture() — astro Function Reference

createDevFixture() — astro Function Reference

Architecture documentation for the createDevFixture() function in fonts.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  34879056_2ed8_a6e4_7a87_126d3b31f769["createDevFixture()"]
  28ec7510_24f5_09cf_8eba_bcdc6ab760e3["fonts.test.js"]
  34879056_2ed8_a6e4_7a87_126d3b31f769 -->|defined in| 28ec7510_24f5_09cf_8eba_bcdc6ab760e3
  dd4f09ce_3fd7_8295_f616_8876cda4555c["loadFixture()"]
  34879056_2ed8_a6e4_7a87_126d3b31f769 -->|calls| dd4f09ce_3fd7_8295_f616_8876cda4555c
  style 34879056_2ed8_a6e4_7a87_126d3b31f769 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fonts.test.js lines 14–30

async function createDevFixture(inlineConfig) {
	const fixture = await loadFixture({ root: './fixtures/fonts/', ...inlineConfig });
	await fixture.clean();
	const devServer = await fixture.startDevServer();

	return {
		fixture,
		devServer,
		run: async (/** @type {() => any} */ cb) => {
			try {
				return await cb();
			} finally {
				await devServer.stop();
			}
		},
	};
}

Subdomains

Frequently Asked Questions

What does createDevFixture() do?
createDevFixture() is a function in the astro codebase, defined in packages/astro/test/fonts.test.js.
Where is createDevFixture() defined?
createDevFixture() is defined in packages/astro/test/fonts.test.js at line 14.
What does createDevFixture() call?
createDevFixture() 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