Home / File/ view.test.ts — ui Source File

view.test.ts — ui Source File

Architecture documentation for view.test.ts, a typescript file in the ui codebase. 7 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  1867f1db_8fe1_137d_8738_ad32a6243fdc["view.test.ts"]
  d74412ab_0ee4_22df_d4c9_26e6c03c4a41["helpers.ts"]
  1867f1db_8fe1_137d_8738_ad32a6243fdc --> d74412ab_0ee4_22df_d4c9_26e6c03c4a41
  7cd02b67_26ab_6129_7de6_8ec39df1ad51["createFixtureTestDirectory"]
  1867f1db_8fe1_137d_8738_ad32a6243fdc --> 7cd02b67_26ab_6129_7de6_8ec39df1ad51
  26ee316c_482d_d5d0_7c05_26095f85f089["npxShadcn"]
  1867f1db_8fe1_137d_8738_ad32a6243fdc --> 26ee316c_482d_d5d0_7c05_26095f85f089
  36b31cf1_05ba_97d7_e250_f336253a3080["registry.ts"]
  1867f1db_8fe1_137d_8738_ad32a6243fdc --> 36b31cf1_05ba_97d7_e250_f336253a3080
  c3b306fd_b8f5_6d85_f831_2817ec0ad4a1["configureRegistries"]
  1867f1db_8fe1_137d_8738_ad32a6243fdc --> c3b306fd_b8f5_6d85_f831_2817ec0ad4a1
  a0458d14_2934_bf61_05f7_fa8e1ffcf6c9["createRegistryServer"]
  1867f1db_8fe1_137d_8738_ad32a6243fdc --> a0458d14_2934_bf61_05f7_fa8e1ffcf6c9
  c8d55bee_7008_1e1f_317b_8dc47b31b6a8["vitest"]
  1867f1db_8fe1_137d_8738_ad32a6243fdc --> c8d55bee_7008_1e1f_317b_8dc47b31b6a8
  style 1867f1db_8fe1_137d_8738_ad32a6243fdc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { afterAll, beforeAll, describe, expect, it } from "vitest"

import { createFixtureTestDirectory, npxShadcn } from "../utils/helpers"
import { configureRegistries, createRegistryServer } from "../utils/registry"

const registryShadcn = await createRegistryServer(
  [
    {
      name: "button",
      type: "registry:ui",
      description: "A button component",
      dependencies: ["@radix-ui/react-slot"],
      devDependencies: ["@types/react"],
      files: [
        {
          path: "components/ui/button.tsx",
          content:
            "export function Button() {\n  return <button>Click me</button>\n}",
          type: "registry:ui",
        },
      ],
    },
    {
      name: "card",
      type: "registry:ui",
      description: "A card component",
      files: [
        {
          path: "components/ui/card.tsx",
          content:
            "export function Card() {\n  return <div>Card Component</div>\n}",
          type: "registry:ui",
        },
      ],
    },
    {
      name: "alert-dialog",
      type: "registry:ui",
      registryDependencies: ["button"],
      files: [
        {
          path: "components/ui/alert-dialog.tsx",
          content:
            "export function AlertDialog() {\n  return <div>AlertDialog Component</div>\n}",
          type: "registry:ui",
        },
      ],
    },
  ],
  {
    port: 9080,
    path: "/r",
  }
)

const registryOne = await createRegistryServer(
  [
    {
      name: "foo",
      type: "registry:component",
// ... (774 more lines)

Frequently Asked Questions

What does view.test.ts do?
view.test.ts is a source file in the ui codebase, written in typescript. It belongs to the ComponentRegistry domain.
What does view.test.ts depend on?
view.test.ts imports 7 module(s): configureRegistries, createFixtureTestDirectory, createRegistryServer, helpers.ts, npxShadcn, registry.ts, vitest.
Where is view.test.ts in the architecture?
view.test.ts is located at packages/tests/src/tests/view.test.ts (domain: ComponentRegistry, directory: packages/tests/src/tests).

Analyze Your Own Codebase

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

Try Supermodel Free