Home / Function/ createFixture() — astro Function Reference

createFixture() — astro Function Reference

Architecture documentation for the createFixture() function in test-utils.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f0937d94_cf30_e0fa_fbd5_135f8c876f70["createFixture()"]
  b0be4d0c_86b6_a283_f2af_003189bfd572["test-utils.js"]
  f0937d94_cf30_e0fa_fbd5_135f8c876f70 -->|defined in| b0be4d0c_86b6_a283_f2af_003189bfd572
  style f0937d94_cf30_e0fa_fbd5_135f8c876f70 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/units/test-utils.js lines 27–37

export async function createFixture(tree) {
	return await _createFixture(
		{
			'package.json': '{}',
			...tree,
		},
		{
			tempDir: tempFixturesDir,
		},
	);
}

Subdomains

Frequently Asked Questions

What does createFixture() do?
createFixture() is a function in the astro codebase, defined in packages/astro/test/units/test-utils.js.
Where is createFixture() defined?
createFixture() is defined in packages/astro/test/units/test-utils.js at line 27.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free