migrate-max-width-screen.test.ts — tailwindcss Source File
Architecture documentation for migrate-max-width-screen.test.ts, a typescript file in the tailwindcss codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 8b540529_8fc5_4551_e488_9c97dc8c4661["migrate-max-width-screen.test.ts"] 0d83b47a_e74a_3b55_ee7e_a502119edad8["migrate-max-width-screen.ts"] 8b540529_8fc5_4551_e488_9c97dc8c4661 --> 0d83b47a_e74a_3b55_ee7e_a502119edad8 579a7acb_b2c1_89ea_306c_08f82c9735cf["migrateMaxWidthScreen"] 8b540529_8fc5_4551_e488_9c97dc8c4661 --> 579a7acb_b2c1_89ea_306c_08f82c9735cf 92f2d961_72a4_d195_92d7_2e66972f8894["node"] 8b540529_8fc5_4551_e488_9c97dc8c4661 --> 92f2d961_72a4_d195_92d7_2e66972f8894 696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"] 8b540529_8fc5_4551_e488_9c97dc8c4661 --> 696bd648_5f24_1b59_8e8b_7a97a692869e style 8b540529_8fc5_4551_e488_9c97dc8c4661 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { __unstable__loadDesignSystem } from '@tailwindcss/node'
import { expect, test } from 'vitest'
import { migrateMaxWidthScreen } from './migrate-max-width-screen'
test('converts max-w-screen-* to max-w-[theme(screens.*)] (so it will later be converted to the var injection)', async () => {
let designSystem = await __unstable__loadDesignSystem('@import "tailwindcss";', {
base: __dirname,
})
let migrated = migrateMaxWidthScreen(designSystem, {}, 'max-w-screen-md')
expect(migrated).toMatchInlineSnapshot(`"max-w-[theme(screens.md)]"`)
})
Domain
Dependencies
Source
Frequently Asked Questions
What does migrate-max-width-screen.test.ts do?
migrate-max-width-screen.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the UpgradeToolkit domain.
What does migrate-max-width-screen.test.ts depend on?
migrate-max-width-screen.test.ts imports 4 module(s): migrate-max-width-screen.ts, migrateMaxWidthScreen, node, vitest.
Where is migrate-max-width-screen.test.ts in the architecture?
migrate-max-width-screen.test.ts is located at packages/@tailwindcss-upgrade/src/codemods/template/migrate-max-width-screen.test.ts (domain: UpgradeToolkit, directory: packages/@tailwindcss-upgrade/src/codemods/template).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free