multi-root.test.ts — tailwindcss Source File
Architecture documentation for multi-root.test.ts, a typescript file in the tailwindcss codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 520b0d15_897d_f8c0_ef50_25a8a9d107d5["multi-root.test.ts"] 9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"] 520b0d15_897d_f8c0_ef50_25a8a9d107d5 --> 9ffd1dda_9675_c514_373d_0f4ab4648249 b7531519_9055_fbfa_5f69_ebc8586b0422["candidate"] 520b0d15_897d_f8c0_ef50_25a8a9d107d5 --> b7531519_9055_fbfa_5f69_ebc8586b0422 f11e3be9_51f8_140b_68b0_f58ddd082595["test"] 520b0d15_897d_f8c0_ef50_25a8a9d107d5 --> f11e3be9_51f8_140b_68b0_f58ddd082595 style 520b0d15_897d_f8c0_ef50_25a8a9d107d5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { candidate, css, html, js, json, test } from '../utils'
test(
'production build',
{
fs: {
'package.json': json`
{
"dependencies": {
"postcss": "^8",
"postcss-cli": "^10",
"tailwindcss": "workspace:^",
"@tailwindcss/postcss": "workspace:^"
}
}
`,
'postcss.config.js': js`
module.exports = {
plugins: {
'@tailwindcss/postcss': {},
},
}
`,
'index.html': html`
<div class="one:underline two:underline"></div>
`,
'src/shared.css': css`
@reference 'tailwindcss/theme';
@import 'tailwindcss/utilities';
`,
'src/root1.css': css`
@import './shared.css';
@custom-variant one (&:is([data-root='1']));
`,
'src/root2.css': css`
@import './shared.css';
@custom-variant two (&:is([data-root='2']));
`,
},
},
async ({ fs, exec }) => {
await exec('pnpm postcss src/*.css -d dist')
await fs.expectFileToContain('dist/root1.css', [candidate`one:underline`])
await fs.expectFileNotToContain('dist/root1.css', [candidate`two:underline`])
await fs.expectFileNotToContain('dist/root2.css', [candidate`one:underline`])
await fs.expectFileToContain('dist/root2.css', [candidate`two:underline`])
},
)
Domain
Source
Frequently Asked Questions
What does multi-root.test.ts do?
multi-root.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain.
What does multi-root.test.ts depend on?
multi-root.test.ts imports 3 module(s): candidate, test, utils.ts.
Where is multi-root.test.ts in the architecture?
multi-root.test.ts is located at integrations/postcss/multi-root.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