instrumentation.test.ts — tailwindcss Source File
Architecture documentation for instrumentation.test.ts, a typescript file in the tailwindcss codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f9709d5e_1e84_81ad_f295_c56a39cd4685["instrumentation.test.ts"] 5fc79c14_9f7d_c655_5020_3326a9635c4a["instrumentation.ts"] f9709d5e_1e84_81ad_f295_c56a39cd4685 --> 5fc79c14_9f7d_c655_5020_3326a9635c4a f86cf69c_7c70_7a89_a666_593c4245917f["Instrumentation"] f9709d5e_1e84_81ad_f295_c56a39cd4685 --> f86cf69c_7c70_7a89_a666_593c4245917f 298a90bc_f8b2_0fb7_b0f5_e0806b5227e5["util"] f9709d5e_1e84_81ad_f295_c56a39cd4685 --> 298a90bc_f8b2_0fb7_b0f5_e0806b5227e5 696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"] f9709d5e_1e84_81ad_f295_c56a39cd4685 --> 696bd648_5f24_1b59_8e8b_7a97a692869e style f9709d5e_1e84_81ad_f295_c56a39cd4685 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { stripVTControlCharacters } from 'util'
import { expect, it } from 'vitest'
import { Instrumentation } from './instrumentation'
it('should add instrumentation', () => {
let I = new Instrumentation()
I.start('Foo')
let x = 1
for (let i = 0; i < 100; i++) {
I.start('Bar')
x **= 2
I.end('Bar')
}
I.end('Foo')
I.hit('Potato')
I.hit('Potato')
I.hit('Potato')
I.hit('Potato')
expect.assertions(1)
I.report((output) => {
expect(stripVTControlCharacters(output).replace(/\[.*\]/g, '[0.xxms]')).toMatchInlineSnapshot(`
"
Hits:
Potato × 4
Timers:
[0.xxms] Foo
[0.xxms] ↳ Bar × 100
"
`)
})
})
it('should auto end pending timers when reporting', () => {
let I = new Instrumentation()
I.start('Foo')
let x = 1
for (let i = 0; i < 100; i++) {
I.start('Bar')
x **= 2
I.end('Bar')
}
I.start('Baz')
expect.assertions(1)
I.report((output) => {
expect(stripVTControlCharacters(output).replace(/\[.*\]/g, '[0.xxms]')).toMatchInlineSnapshot(`
"
[0.xxms] Foo
[0.xxms] ↳ Bar × 100
[0.xxms] ↳ Baz
"
`)
})
})
Domain
Dependencies
- Instrumentation
- instrumentation.ts
- util
- vitest
Source
Frequently Asked Questions
What does instrumentation.test.ts do?
instrumentation.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the NodeBridge domain.
What does instrumentation.test.ts depend on?
instrumentation.test.ts imports 4 module(s): Instrumentation, instrumentation.ts, util, vitest.
Where is instrumentation.test.ts in the architecture?
instrumentation.test.ts is located at packages/@tailwindcss-node/src/instrumentation.test.ts (domain: NodeBridge, directory: packages/@tailwindcss-node/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free