Home / File/ migrate-legacy-arbitrary-values.test.ts — tailwindcss Source File

migrate-legacy-arbitrary-values.test.ts — tailwindcss Source File

Architecture documentation for migrate-legacy-arbitrary-values.test.ts, a typescript file in the tailwindcss codebase. 4 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  f4ca7aef_34dd_41d1_7087_e56ba17c6394["migrate-legacy-arbitrary-values.test.ts"]
  29d3e557_c0bc_8d75_94ae_12864625aef4["migrate-legacy-arbitrary-values.ts"]
  f4ca7aef_34dd_41d1_7087_e56ba17c6394 --> 29d3e557_c0bc_8d75_94ae_12864625aef4
  2d17c912_6324_fc2c_8ab3_065595647555["migrateLegacyArbitraryValues"]
  f4ca7aef_34dd_41d1_7087_e56ba17c6394 --> 2d17c912_6324_fc2c_8ab3_065595647555
  92f2d961_72a4_d195_92d7_2e66972f8894["node"]
  f4ca7aef_34dd_41d1_7087_e56ba17c6394 --> 92f2d961_72a4_d195_92d7_2e66972f8894
  696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"]
  f4ca7aef_34dd_41d1_7087_e56ba17c6394 --> 696bd648_5f24_1b59_8e8b_7a97a692869e
  style f4ca7aef_34dd_41d1_7087_e56ba17c6394 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { __unstable__loadDesignSystem } from '@tailwindcss/node'
import { expect, test } from 'vitest'
import { migrateLegacyArbitraryValues } from './migrate-legacy-arbitrary-values'

test.each([
  ['grid-cols-[auto,1fr]', 'grid-cols-[auto_1fr]'],
  ['grid-rows-[auto,1fr]', 'grid-rows-[auto_1fr]'],
  ['object-[10px,20px]', 'object-[10px_20px]'],
])('%s => %s', async (candidate, result) => {
  let designSystem = await __unstable__loadDesignSystem('@import "tailwindcss";', {
    base: __dirname,
  })

  expect(migrateLegacyArbitraryValues(designSystem, {}, candidate)).toEqual(result)
})

Frequently Asked Questions

What does migrate-legacy-arbitrary-values.test.ts do?
migrate-legacy-arbitrary-values.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the UpgradeToolkit domain.
What does migrate-legacy-arbitrary-values.test.ts depend on?
migrate-legacy-arbitrary-values.test.ts imports 4 module(s): migrate-legacy-arbitrary-values.ts, migrateLegacyArbitraryValues, node, vitest.
Where is migrate-legacy-arbitrary-values.test.ts in the architecture?
migrate-legacy-arbitrary-values.test.ts is located at packages/@tailwindcss-upgrade/src/codemods/template/migrate-legacy-arbitrary-values.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