is-typescript-project.test.ts — ui Source File
Architecture documentation for is-typescript-project.test.ts, a typescript file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 4c7ae382_ec65_ca7d_7abe_2fd54af95159["is-typescript-project.test.ts"] 6a5c3afa_2e3e_bbfc_2351_1976d5a184fe["get-project-info.ts"] 4c7ae382_ec65_ca7d_7abe_2fd54af95159 --> 6a5c3afa_2e3e_bbfc_2351_1976d5a184fe 9d3f8fb7_b46a_9870_5308_60df44a8f011["isTypeScriptProject"] 4c7ae382_ec65_ca7d_7abe_2fd54af95159 --> 9d3f8fb7_b46a_9870_5308_60df44a8f011 d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5["path"] 4c7ae382_ec65_ca7d_7abe_2fd54af95159 --> d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5 c8d55bee_7008_1e1f_317b_8dc47b31b6a8["vitest"] 4c7ae382_ec65_ca7d_7abe_2fd54af95159 --> c8d55bee_7008_1e1f_317b_8dc47b31b6a8 style 4c7ae382_ec65_ca7d_7abe_2fd54af95159 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import path from "path"
import { describe, expect, test } from "vitest"
import { isTypeScriptProject } from "../../src/utils/get-project-info"
describe("is TypeScript project", async () => {
test.each([
{
name: "next-app",
result: true,
},
{
name: "next-app-src",
result: true,
},
{
name: "next-pages",
result: true,
},
{
name: "next-pages-src",
result: true,
},
{
name: "t3-app",
result: true,
},
{
name: "next-app-js",
result: false,
},
])(`isTypeScriptProject($name) -> $result`, async ({ name, result }) => {
expect(
await isTypeScriptProject(
path.resolve(__dirname, `../fixtures/frameworks/${name}`)
)
).toBe(result)
})
})
Domain
Dependencies
- get-project-info.ts
- isTypeScriptProject
- path
- vitest
Source
Frequently Asked Questions
What does is-typescript-project.test.ts do?
is-typescript-project.test.ts is a source file in the ui codebase, written in typescript. It belongs to the FrameworkTooling domain.
What does is-typescript-project.test.ts depend on?
is-typescript-project.test.ts imports 4 module(s): get-project-info.ts, isTypeScriptProject, path, vitest.
Where is is-typescript-project.test.ts in the architecture?
is-typescript-project.test.ts is located at packages/shadcn/test/utils/is-typescript-project.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