index.test.ts — tailwindcss Source File
Architecture documentation for index.test.ts, a typescript file in the tailwindcss codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 84357041_af3f_2c58_c795_25c759d25003["index.test.ts"] 7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"] 84357041_af3f_2c58_c795_25c759d25003 --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac ce18acb2_833c_61a7_166d_0fd7613ce1c0["candidate"] 84357041_af3f_2c58_c795_25c759d25003 --> ce18acb2_833c_61a7_166d_0fd7613ce1c0 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"] 84357041_af3f_2c58_c795_25c759d25003 --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04 89aef3dd_1eed_c141_d425_b8949215a653["node:path"] 84357041_af3f_2c58_c795_25c759d25003 --> 89aef3dd_1eed_c141_d425_b8949215a653 style 84357041_af3f_2c58_c795_25c759d25003 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import path from 'node:path'
import { candidate, css, html, js, json, test, ts, yaml } from '../utils'
test(
'production build (string)',
{
fs: {
'package.json': json`{}`,
'pnpm-workspace.yaml': yaml`
#
packages:
- project-a
`,
'project-a/package.json': json`
{
"dependencies": {
"postcss": "^8",
"postcss-cli": "^10",
"tailwindcss": "workspace:^",
"@tailwindcss/postcss": "workspace:^"
}
}
`,
'project-a/postcss.config.js': js`
module.exports = {
plugins: {
'@tailwindcss/postcss': {},
},
}
`,
'project-a/index.html': html`
<div
class="underline 2xl:font-bold hocus:underline inverted:flex"
></div>
`,
'project-a/plugin.js': js`
module.exports = function ({ addVariant }) {
addVariant('inverted', '@media (inverted-colors: inverted)')
addVariant('hocus', ['&:focus', '&:hover'])
}
`,
'project-a/tailwind.config.js': js`
module.exports = {
content: ['../project-b/src/**/*.js'],
}
`,
'project-a/src/index.css': css`
@import 'tailwindcss/utilities';
@config '../tailwind.config.js';
@source '../../project-b/src/**/*.html';
@plugin '../plugin.js';
`,
'project-a/src/index.js': js`
const className = "content-['a/src/index.js']"
module.exports = { className }
`,
'project-b/src/index.html': html`
<div class="flex" />
`,
'project-b/src/index.js': js`
// ... (834 more lines)
Domain
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.
What does index.test.ts depend on?
index.test.ts imports 4 module(s): candidate, node:path, test, utils.ts.
Where is index.test.ts in the architecture?
index.test.ts is located at integrations/postcss/index.test.ts (domain: Oxide, directory: integrations/postcss).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free