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 124d2857_5a79_363d_4a56_1431b12b5030["escape.test.ts"] efac73cf_6ebb_d715_c95b_77e505446ee2["escape.ts"] 124d2857_5a79_363d_4a56_1431b12b5030 --> efac73cf_6ebb_d715_c95b_77e505446ee2 3330a25c_8114_660c_a3c7_8f1aaa37457d["escape"] 124d2857_5a79_363d_4a56_1431b12b5030 --> 3330a25c_8114_660c_a3c7_8f1aaa37457d 87a17ea2_6c8d_3d38_bd46_25d9267eeac0["unescape"] 124d2857_5a79_363d_4a56_1431b12b5030 --> 87a17ea2_6c8d_3d38_bd46_25d9267eeac0 f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3["vitest"] 124d2857_5a79_363d_4a56_1431b12b5030 --> f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3 style 124d2857_5a79_363d_4a56_1431b12b5030 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
Source
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 Oxide 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: Oxide, 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