createFixtureTestDirectory() — ui Function Reference
Architecture documentation for the createFixtureTestDirectory() function in helpers.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 7cd02b67_26ab_6129_7de6_8ec39df1ad51["createFixtureTestDirectory()"] d74412ab_0ee4_22df_d4c9_26e6c03c4a41["helpers.ts"] 7cd02b67_26ab_6129_7de6_8ec39df1ad51 -->|defined in| d74412ab_0ee4_22df_d4c9_26e6c03c4a41 style 7cd02b67_26ab_6129_7de6_8ec39df1ad51 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tests/src/utils/helpers.ts lines 17–27
export async function createFixtureTestDirectory(fixtureName: string) {
const fixturePath = path.join(FIXTURES_DIR, fixtureName)
const uniqueId = `${process.pid}-${randomUUID().substring(0, 8)}`
let testDir = path.join(TEMP_DIR, `test-${uniqueId}-${fixtureName}`)
await fs.ensureDir(testDir)
await fs.copy(fixturePath, testDir)
return testDir
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does createFixtureTestDirectory() do?
createFixtureTestDirectory() is a function in the ui codebase, defined in packages/tests/src/utils/helpers.ts.
Where is createFixtureTestDirectory() defined?
createFixtureTestDirectory() is defined in packages/tests/src/utils/helpers.ts at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free