update-dependencies.test.ts — ui Source File
Architecture documentation for update-dependencies.test.ts, a typescript file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 5e86a725_f9ff_b292_a4b0_04da0dabe204["update-dependencies.test.ts"] 30cdaf3b_9156_5324_145d_5e18169a3338["update-dependencies.ts"] 5e86a725_f9ff_b292_a4b0_04da0dabe204 --> 30cdaf3b_9156_5324_145d_5e18169a3338 adc8a174_5629_0978_1252_434223094dbc["updateDependencies"] 5e86a725_f9ff_b292_a4b0_04da0dabe204 --> adc8a174_5629_0978_1252_434223094dbc d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5["path"] 5e86a725_f9ff_b292_a4b0_04da0dabe204 --> d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5 8fa2a696_bed4_6bec_383f_7df160ded516["execa"] 5e86a725_f9ff_b292_a4b0_04da0dabe204 --> 8fa2a696_bed4_6bec_383f_7df160ded516 e68f2c02_595f_e9c2_5917_7a8d47bcfc87["prompts"] 5e86a725_f9ff_b292_a4b0_04da0dabe204 --> e68f2c02_595f_e9c2_5917_7a8d47bcfc87 c8d55bee_7008_1e1f_317b_8dc47b31b6a8["vitest"] 5e86a725_f9ff_b292_a4b0_04da0dabe204 --> c8d55bee_7008_1e1f_317b_8dc47b31b6a8 style 5e86a725_f9ff_b292_a4b0_04da0dabe204 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import path from "path"
import { execa } from "execa"
import prompts from "prompts"
import { afterEach, describe, expect, test, vi } from "vitest"
import { updateDependencies } from "../../../src/utils/updaters/update-dependencies"
vi.mock("execa")
vi.mock("prompts")
describe("updateDependencies", () => {
afterEach(() => {
vi.restoreAllMocks()
})
test.each([
{
description:
"npm without react-day-picker v8 includes no additional flags",
options: { silent: true },
dependencies: ["first", "second", "third"],
devDependencies: ["fourth"],
config: {
resolvedPaths: {
cwd: path.resolve(__dirname, "../../fixtures/project-npm"),
},
},
expectedPackageManager: "npm",
expectedArgs: ["install", "first", "second", "third"],
expectedDevArgs: ["install", "-D", "fourth"],
},
{
description:
"npm with react-day-picker v8 applies force prompt when silent",
options: { silent: true },
dependencies: ["first", "second", "third"],
devDependencies: ["fourth"],
config: {
resolvedPaths: {
cwd: path.resolve(__dirname, "../../fixtures/project-npm-react19"),
},
},
expectedPackageManager: "npm",
expectedArgs: ["install", "--force", "first", "second", "third"],
expectedDevArgs: ["install", "--force", "-D", "fourth"],
},
{
description:
"npm with react-day-picker v8 prompts for flag when not silent",
flagPrompt: "legacy-peer-deps",
dependencies: ["first", "second", "third"],
devDependencies: ["fourth"],
config: {
resolvedPaths: {
cwd: path.resolve(__dirname, "../../fixtures/project-npm-react19"),
},
},
expectedPackageManager: "npm",
expectedArgs: [
"install",
// ... (98 more lines)
Domain
Dependencies
- execa
- path
- prompts
- update-dependencies.ts
- updateDependencies
- vitest
Source
Frequently Asked Questions
What does update-dependencies.test.ts do?
update-dependencies.test.ts is a source file in the ui codebase, written in typescript. It belongs to the FrameworkTooling domain.
What does update-dependencies.test.ts depend on?
update-dependencies.test.ts imports 6 module(s): execa, path, prompts, update-dependencies.ts, updateDependencies, vitest.
Where is update-dependencies.test.ts in the architecture?
update-dependencies.test.ts is located at packages/shadcn/test/utils/updaters/update-dependencies.test.ts (domain: FrameworkTooling, directory: packages/shadcn/test/utils/updaters).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free