get-ts-config-alias-prefix.test.ts — ui Source File
Architecture documentation for get-ts-config-alias-prefix.test.ts, a typescript file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 2046c1ec_72ff_8afb_4c86_4984b76da349["get-ts-config-alias-prefix.test.ts"] 6a5c3afa_2e3e_bbfc_2351_1976d5a184fe["get-project-info.ts"] 2046c1ec_72ff_8afb_4c86_4984b76da349 --> 6a5c3afa_2e3e_bbfc_2351_1976d5a184fe 7a6e72c8_8e76_5361_c11f_5927cb3ab2ff["getTsConfigAliasPrefix"] 2046c1ec_72ff_8afb_4c86_4984b76da349 --> 7a6e72c8_8e76_5361_c11f_5927cb3ab2ff d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5["path"] 2046c1ec_72ff_8afb_4c86_4984b76da349 --> d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5 c8d55bee_7008_1e1f_317b_8dc47b31b6a8["vitest"] 2046c1ec_72ff_8afb_4c86_4984b76da349 --> c8d55bee_7008_1e1f_317b_8dc47b31b6a8 style 2046c1ec_72ff_8afb_4c86_4984b76da349 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import path from "path"
import { describe, expect, test } from "vitest"
import { getTsConfigAliasPrefix } from "../../src/utils/get-project-info"
describe("get ts config alias prefix", async () => {
test.each([
{
name: "next-app",
prefix: "@",
},
{
name: "next-app-src",
prefix: "#",
},
{
name: "next-pages",
prefix: "~",
},
{
name: "next-pages-src",
prefix: "@",
},
{
name: "t3-app",
prefix: "~",
},
{
name: "next-app-custom-alias",
prefix: "@custom-alias",
},
])(`getTsConfigAliasPrefix($name) -> $prefix`, async ({ name, prefix }) => {
expect(
await getTsConfigAliasPrefix(
path.resolve(__dirname, `../fixtures/frameworks/${name}`)
)
).toBe(prefix)
})
})
Domain
Dependencies
Source
Frequently Asked Questions
What does get-ts-config-alias-prefix.test.ts do?
get-ts-config-alias-prefix.test.ts is a source file in the ui codebase, written in typescript. It belongs to the FrameworkTooling domain.
What does get-ts-config-alias-prefix.test.ts depend on?
get-ts-config-alias-prefix.test.ts imports 4 module(s): get-project-info.ts, getTsConfigAliasPrefix, path, vitest.
Where is get-ts-config-alias-prefix.test.ts in the architecture?
get-ts-config-alias-prefix.test.ts is located at packages/shadcn/test/utils/get-ts-config-alias-prefix.test.ts (domain: FrameworkTooling, directory: packages/shadcn/test/utils).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free