Home / File/ escape.test.ts — tailwindcss Source File

escape.test.ts — tailwindcss Source File

Architecture documentation for escape.test.ts, a typescript file in the tailwindcss codebase. 4 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  f662ccb7_32df_9b06_8d56_d9c470c48229["escape.test.ts"]
  e28f6b6c_be9a_6950_8075_180c1b66f0ea["escape.ts"]
  f662ccb7_32df_9b06_8d56_d9c470c48229 --> e28f6b6c_be9a_6950_8075_180c1b66f0ea
  433dc479_0296_0a89_fd12_79fc4ea2b8bd["escape"]
  f662ccb7_32df_9b06_8d56_d9c470c48229 --> 433dc479_0296_0a89_fd12_79fc4ea2b8bd
  dfc91ad5_bcf3_d363_efd7_01a5223f7b74["unescape"]
  f662ccb7_32df_9b06_8d56_d9c470c48229 --> dfc91ad5_bcf3_d363_efd7_01a5223f7b74
  696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"]
  f662ccb7_32df_9b06_8d56_d9c470c48229 --> 696bd648_5f24_1b59_8e8b_7a97a692869e
  style f662ccb7_32df_9b06_8d56_d9c470c48229 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { describe, expect, test } from 'vitest'
import { escape, unescape } from './escape'

describe('escape', () => {
  test('adds backslashes', () => {
    expect(escape(String.raw`red-1/2`)).toMatchInlineSnapshot(`"red-1\\/2"`)
  })
})

describe('unescape', () => {
  test('removes backslashes', () => {
    expect(unescape(String.raw`red-1\/2`)).toMatchInlineSnapshot(`"red-1/2"`)
  })
})

Domain

Dependencies

Frequently Asked Questions

What does escape.test.ts do?
escape.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain.
What does escape.test.ts depend on?
escape.test.ts imports 4 module(s): escape, escape.ts, unescape, vitest.
Where is escape.test.ts in the architecture?
escape.test.ts is located at packages/tailwindcss/src/utils/escape.test.ts (domain: OxideEngine, directory: packages/tailwindcss/src/utils).

Analyze Your Own Codebase

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

Try Supermodel Free