config.test.ts — tailwindcss Source File
Architecture documentation for config.test.ts, a typescript file in the tailwindcss codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR cc5a549b_1032_9ceb_088e_c30f9262e59b["config.test.ts"] 9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"] cc5a549b_1032_9ceb_088e_c30f9262e59b --> 9ffd1dda_9675_c514_373d_0f4ab4648249 b7531519_9055_fbfa_5f69_ebc8586b0422["candidate"] cc5a549b_1032_9ceb_088e_c30f9262e59b --> b7531519_9055_fbfa_5f69_ebc8586b0422 f11e3be9_51f8_140b_68b0_f58ddd082595["test"] cc5a549b_1032_9ceb_088e_c30f9262e59b --> f11e3be9_51f8_140b_68b0_f58ddd082595 style cc5a549b_1032_9ceb_088e_c30f9262e59b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { candidate, css, html, js, json, test } from '../utils'
test(
'Config files (CJS)',
{
fs: {
'package.json': json`
{
"dependencies": {
"postcss": "^8",
"postcss-cli": "^10",
"tailwindcss": "workspace:^",
"@tailwindcss/postcss": "workspace:^"
}
}
`,
'postcss.config.js': js`
/** @type {import('postcss-load-config').Config} */
module.exports = {
plugins: {
'@tailwindcss/postcss': {},
},
}
`,
'index.html': html`
<div class="text-primary"></div>
`,
'tailwind.config.js': js`
module.exports = {
theme: {
extend: {
colors: {
primary: 'blue',
},
},
},
}
`,
'src/index.css': css`
@import 'tailwindcss';
@config '../tailwind.config.js';
`,
},
},
async ({ fs, exec }) => {
await exec('pnpm postcss src/index.css --output dist/out.css')
await fs.expectFileToContain('dist/out.css', [
//
candidate`text-primary`,
])
},
)
test(
'Config files (ESM)',
{
fs: {
'package.json': json`
{
// ... (188 more lines)
Domain
Source
Frequently Asked Questions
What does config.test.ts do?
config.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain.
What does config.test.ts depend on?
config.test.ts imports 3 module(s): candidate, test, utils.ts.
Where is config.test.ts in the architecture?
config.test.ts is located at integrations/postcss/config.test.ts (domain: OxideEngine, directory: integrations/postcss).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free