format-ns.test.ts — tailwindcss Source File
Architecture documentation for format-ns.test.ts, a typescript file in the tailwindcss codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 77c60205_caa0_9ebf_6c95_8d7252f6e429["format-ns.test.ts"] 5962a7f5_fddb_2d83_4f12_66ebacc2e893["format-ns.ts"] 77c60205_caa0_9ebf_6c95_8d7252f6e429 --> 5962a7f5_fddb_2d83_4f12_66ebacc2e893 f1036358_1349_9cc5_4378_7a8df38a3224["formatNanoseconds"] 77c60205_caa0_9ebf_6c95_8d7252f6e429 --> f1036358_1349_9cc5_4378_7a8df38a3224 696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"] 77c60205_caa0_9ebf_6c95_8d7252f6e429 --> 696bd648_5f24_1b59_8e8b_7a97a692869e style 77c60205_caa0_9ebf_6c95_8d7252f6e429 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expect, it } from 'vitest'
import { formatNanoseconds } from './format-ns'
it.each([
[0, '0ns'],
[1, '1ns'],
[999, '999ns'],
[1000, '1µs'],
[1001, '1µs'],
[999999, '999µs'],
[1000000, '1ms'],
[1000001, '1ms'],
[999999999, '999ms'],
[1000000000, '1s'],
[1000000001, '1s'],
[59999999999, '59s'],
[60000000000, '1m'],
[60000000001, '1m'],
[3599999999999n, '59m'],
[3600000000000n, '1h'],
[3600000000001n, '1h'],
[86399999999999n, '23h'],
[86400000000000n, '1d'],
[86400000000001n, '1d'],
[8640000000000000n, '100d'],
])('should format %s nanoseconds as %s', (ns, expected) => {
expect(formatNanoseconds(ns)).toBe(expected)
})
Domain
Dependencies
Source
Frequently Asked Questions
What does format-ns.test.ts do?
format-ns.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the UpgradeToolkit domain.
What does format-ns.test.ts depend on?
format-ns.test.ts imports 3 module(s): format-ns.ts, formatNanoseconds, vitest.
Where is format-ns.test.ts in the architecture?
format-ns.test.ts is located at packages/@tailwindcss-upgrade/src/utils/format-ns.test.ts (domain: UpgradeToolkit, directory: packages/@tailwindcss-upgrade/src/utils).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free