test-utils.js — astro Source File
Architecture documentation for test-utils.js, a javascript file in the astro codebase. 2 imports, 3 dependents.
Entity Profile
Dependency Diagram
graph LR 1c3a6eaf_e190_a7a7_4e0d_f3970df5bd14["test-utils.js"] 0a624eac_945e_c9e8_c9de_3feb9de2dd15["test-utils.js"] 1c3a6eaf_e190_a7a7_4e0d_f3970df5bd14 --> 0a624eac_945e_c9e8_c9de_3feb9de2dd15 dd4f09ce_3fd7_8295_f616_8876cda4555c["loadFixture"] 1c3a6eaf_e190_a7a7_4e0d_f3970df5bd14 --> dd4f09ce_3fd7_8295_f616_8876cda4555c efdb2308_8bf7_329e_6663_4339329797ec["app-entrypoint-css.test.js"] efdb2308_8bf7_329e_6663_4339329797ec --> 1c3a6eaf_e190_a7a7_4e0d_f3970df5bd14 496510a8_f0a8_0267_0c58_6273c6a97bdc["app-entrypoint.test.js"] 496510a8_f0a8_0267_0c58_6273c6a97bdc --> 1c3a6eaf_e190_a7a7_4e0d_f3970df5bd14 f453bde8_0dbb_b928_bac1_7be58fba3dd6["basics.test.js"] f453bde8_0dbb_b928_bac1_7be58fba3dd6 --> 1c3a6eaf_e190_a7a7_4e0d_f3970df5bd14 style 1c3a6eaf_e190_a7a7_4e0d_f3970df5bd14 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { loadFixture as baseLoadFixture } from '../../../astro/test/test-utils.js';
/**
* @typedef {import('../../../astro/test/test-utils').Fixture} Fixture
*/
export function loadFixture(inlineConfig) {
if (!inlineConfig?.root) throw new Error("Must provide { root: './fixtures/...' }");
// resolve the relative root (i.e. "./fixtures/tailwindcss") to a full filepath
// without this, the main `loadFixture` helper will resolve relative to `packages/astro/test`
return baseLoadFixture({
...inlineConfig,
root: new URL(inlineConfig.root, import.meta.url).toString(),
});
}
Domain
Subdomains
Functions
Dependencies
Imported By
Source
Frequently Asked Questions
What does test-utils.js do?
test-utils.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain, RoutingSystem subdomain.
What functions are defined in test-utils.js?
test-utils.js defines 1 function(s): loadFixture.
What does test-utils.js depend on?
test-utils.js imports 2 module(s): loadFixture, test-utils.js.
What files import test-utils.js?
test-utils.js is imported by 3 file(s): app-entrypoint-css.test.js, app-entrypoint.test.js, basics.test.js.
Where is test-utils.js in the architecture?
test-utils.js is located at packages/integrations/vue/test/test-utils.js (domain: CoreAstro, subdomain: RoutingSystem, directory: packages/integrations/vue/test).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free