migrate-simple-legacy-classes.test.ts — tailwindcss Source File
Architecture documentation for migrate-simple-legacy-classes.test.ts, a typescript file in the tailwindcss codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 0deaea05_7422_6f59_4393_6fb6c20f73c6["migrate-simple-legacy-classes.test.ts"] fff09679_e13c_392d_23bb_cebc04ddb008["version.ts"] 0deaea05_7422_6f59_4393_6fb6c20f73c6 --> fff09679_e13c_392d_23bb_cebc04ddb008 a410c111_cb5e_0405_07a0_44bdb02ec55d["migrate-simple-legacy-classes.ts"] 0deaea05_7422_6f59_4393_6fb6c20f73c6 --> a410c111_cb5e_0405_07a0_44bdb02ec55d d102577c_f14a_d6a3_be54_9d3e6a08b975["migrateSimpleLegacyClasses"] 0deaea05_7422_6f59_4393_6fb6c20f73c6 --> d102577c_f14a_d6a3_be54_9d3e6a08b975 92f2d961_72a4_d195_92d7_2e66972f8894["node"] 0deaea05_7422_6f59_4393_6fb6c20f73c6 --> 92f2d961_72a4_d195_92d7_2e66972f8894 696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"] 0deaea05_7422_6f59_4393_6fb6c20f73c6 --> 696bd648_5f24_1b59_8e8b_7a97a692869e style 0deaea05_7422_6f59_4393_6fb6c20f73c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { __unstable__loadDesignSystem } from '@tailwindcss/node'
import { expect, test, vi } from 'vitest'
import * as versions from '../../utils/version'
import { migrateSimpleLegacyClasses } from './migrate-simple-legacy-classes'
vi.spyOn(versions, 'isMajor').mockReturnValue(true)
test.each([
['overflow-ellipsis', 'text-ellipsis'],
['flex-grow', 'grow'],
['flex-grow-0', 'grow-0'],
['flex-shrink', 'shrink'],
['flex-shrink-0', 'shrink-0'],
['decoration-clone', 'box-decoration-clone'],
['decoration-slice', 'box-decoration-slice'],
['max-lg:hover:decoration-slice', 'max-lg:hover:box-decoration-slice'],
['max-lg:hover:decoration-slice!', 'max-lg:hover:box-decoration-slice!'],
['max-lg:hover:!decoration-slice', 'max-lg:hover:box-decoration-slice!'],
['focus:outline-none', 'focus:outline-hidden'],
// Should not convert v2 utilities
['overflow-clip', 'overflow-clip'],
])('%s => %s', async (candidate, result) => {
let designSystem = await __unstable__loadDesignSystem('@import "tailwindcss";', {
base: __dirname,
})
expect(migrateSimpleLegacyClasses(designSystem, {}, candidate)).toEqual(result)
})
Domain
Dependencies
Source
Frequently Asked Questions
What does migrate-simple-legacy-classes.test.ts do?
migrate-simple-legacy-classes.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the UpgradeToolkit domain.
What does migrate-simple-legacy-classes.test.ts depend on?
migrate-simple-legacy-classes.test.ts imports 5 module(s): migrate-simple-legacy-classes.ts, migrateSimpleLegacyClasses, node, version.ts, vitest.
Where is migrate-simple-legacy-classes.test.ts in the architecture?
migrate-simple-legacy-classes.test.ts is located at packages/@tailwindcss-upgrade/src/codemods/template/migrate-simple-legacy-classes.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