index.test.ts — tailwindcss Source File
Architecture documentation for index.test.ts, a typescript file in the tailwindcss codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e2f78f43_b7bb_6786_5643_272dee9c08b7["index.test.ts"] 7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"] e2f78f43_b7bb_6786_5643_272dee9c08b7 --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac ce18acb2_833c_61a7_166d_0fd7613ce1c0["candidate"] e2f78f43_b7bb_6786_5643_272dee9c08b7 --> ce18acb2_833c_61a7_166d_0fd7613ce1c0 522399f9_a5a8_fa94_794a_917ab0d0a66d["fetchStyles"] e2f78f43_b7bb_6786_5643_272dee9c08b7 --> 522399f9_a5a8_fa94_794a_917ab0d0a66d 22238dde_7df7_64d5_1424_a93cf2421b15["retryAssertion"] e2f78f43_b7bb_6786_5643_272dee9c08b7 --> 22238dde_7df7_64d5_1424_a93cf2421b15 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"] e2f78f43_b7bb_6786_5643_272dee9c08b7 --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04 89aef3dd_1eed_c141_d425_b8949215a653["node:path"] e2f78f43_b7bb_6786_5643_272dee9c08b7 --> 89aef3dd_1eed_c141_d425_b8949215a653 f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3["vitest"] e2f78f43_b7bb_6786_5643_272dee9c08b7 --> f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3 style e2f78f43_b7bb_6786_5643_272dee9c08b7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import path from 'node:path'
import { describe } from 'vitest'
import {
candidate,
css,
fetchStyles,
html,
js,
json,
retryAssertion,
test,
ts,
txt,
yaml,
} from '../utils'
describe.each(['postcss', 'lightningcss'])('%s', (transformer) => {
test(
`production build`,
{
fs: {
'package.json': json`{}`,
'pnpm-workspace.yaml': yaml`
#
packages:
- project-a
`,
'project-a/package.json': txt`
{
"type": "module",
"dependencies": {
"@tailwindcss/vite": "workspace:^",
"tailwindcss": "workspace:^"
},
"devDependencies": {
${transformer === 'lightningcss' ? `"lightningcss": "^1",` : ''}
"vite": "^7"
}
}
`,
'project-a/vite.config.ts': ts`
import tailwindcss from '@tailwindcss/vite'
import { defineConfig } from 'vite'
export default defineConfig({
css: ${transformer === 'postcss' ? '{}' : "{ transformer: 'lightningcss' }"},
build: { cssMinify: false },
plugins: [tailwindcss()],
})
`,
'project-a/index.html': html`
<head>
<link rel="stylesheet" href="./src/index.css" />
</head>
<body>
<div class="underline m-2">Hello, world!</div>
</body>
`,
'project-a/tailwind.config.js': js`
export default {
// ... (1106 more lines)
Domain
Subdomains
Functions
Dependencies
- candidate
- fetchStyles
- node:path
- retryAssertion
- test
- utils.ts
- vitest
Source
Frequently Asked Questions
What does index.test.ts do?
index.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain, PreProcessors subdomain.
What functions are defined in index.test.ts?
index.test.ts defines 1 function(s): firstLine.
What does index.test.ts depend on?
index.test.ts imports 7 module(s): candidate, fetchStyles, node:path, retryAssertion, test, utils.ts, vitest.
Where is index.test.ts in the architecture?
index.test.ts is located at integrations/vite/index.test.ts (domain: Oxide, subdomain: PreProcessors, directory: integrations/vite).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free