plugins.test.ts — tailwindcss Source File
Architecture documentation for plugins.test.ts, a typescript file in the tailwindcss codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 9e87ff49_82a8_a890_6d35_69c78ac23be2["plugins.test.ts"] 7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"] 9e87ff49_82a8_a890_6d35_69c78ac23be2 --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac ce18acb2_833c_61a7_166d_0fd7613ce1c0["candidate"] 9e87ff49_82a8_a890_6d35_69c78ac23be2 --> ce18acb2_833c_61a7_166d_0fd7613ce1c0 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"] 9e87ff49_82a8_a890_6d35_69c78ac23be2 --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04 style 9e87ff49_82a8_a890_6d35_69c78ac23be2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { candidate, css, html, js, json, test } from '../utils'
test(
'builds the `@headlessui/tailwindcss` plugin utilities (CJS)',
{
fs: {
'package.json': json`
{
"type": "commonjs",
"dependencies": {
"postcss": "^8",
"postcss-cli": "^10",
"tailwindcss": "workspace:^",
"@tailwindcss/postcss": "workspace:^",
"@headlessui/tailwindcss": "^0.2.1"
}
}
`,
'postcss.config.cjs': js`
let tailwindcss = require('@tailwindcss/postcss')
module.exports = {
plugins: [tailwindcss()],
}
`,
'index.html': html`
<div className="ui-open:flex"></div>
`,
'src/index.css': css`
@reference 'tailwindcss/theme';
@import 'tailwindcss/utilities';
@plugin '@headlessui/tailwindcss';
`,
},
},
async ({ fs, exec }) => {
await exec('pnpm postcss src/index.css --output dist/out.css')
await fs.expectFileToContain('dist/out.css', [candidate`ui-open:flex`])
},
)
test(
'builds the `@headlessui/tailwindcss` plugin utilities (ESM)',
{
fs: {
'package.json': json`
{
"type": "module",
"dependencies": {
"postcss": "^8",
"postcss-cli": "^10",
"tailwindcss": "workspace:^",
"@tailwindcss/postcss": "workspace:^",
"@headlessui/tailwindcss": "^0.2.1"
}
}
`,
'postcss.config.mjs': js`
import tailwindcss from '@tailwindcss/postcss'
export default {
plugins: [tailwindcss()],
}
`,
'index.html': html`
<div className="ui-open:flex"></div>
`,
'src/index.css': css`
@reference 'tailwindcss/theme';
@import 'tailwindcss/utilities';
@plugin '@headlessui/tailwindcss';
`,
},
},
async ({ fs, exec }) => {
await exec('pnpm postcss src/index.css --output dist/out.css')
await fs.expectFileToContain('dist/out.css', [candidate`ui-open:flex`])
},
)
Domain
Source
Frequently Asked Questions
What does plugins.test.ts do?
plugins.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain.
What does plugins.test.ts depend on?
plugins.test.ts imports 3 module(s): candidate, test, utils.ts.
Where is plugins.test.ts in the architecture?
plugins.test.ts is located at integrations/postcss/plugins.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