solidstart.test.ts — tailwindcss Source File
Architecture documentation for solidstart.test.ts, a typescript file in the tailwindcss codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ffb75ac2_5411_5592_cfbe_2405f3489fcb["solidstart.test.ts"] 7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"] ffb75ac2_5411_5592_cfbe_2405f3489fcb --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac ce18acb2_833c_61a7_166d_0fd7613ce1c0["candidate"] ffb75ac2_5411_5592_cfbe_2405f3489fcb --> ce18acb2_833c_61a7_166d_0fd7613ce1c0 522399f9_a5a8_fa94_794a_917ab0d0a66d["fetchStyles"] ffb75ac2_5411_5592_cfbe_2405f3489fcb --> 522399f9_a5a8_fa94_794a_917ab0d0a66d 22238dde_7df7_64d5_1424_a93cf2421b15["retryAssertion"] ffb75ac2_5411_5592_cfbe_2405f3489fcb --> 22238dde_7df7_64d5_1424_a93cf2421b15 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"] ffb75ac2_5411_5592_cfbe_2405f3489fcb --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04 style ffb75ac2_5411_5592_cfbe_2405f3489fcb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { candidate, css, fetchStyles, js, json, retryAssertion, test, ts } from '../utils'
const WORKSPACE = {
'package.json': json`
{
"type": "module",
"dependencies": {
"@solidjs/start": "^1",
"solid-js": "^1",
"vinxi": "^0",
"@tailwindcss/vite": "workspace:^",
"tailwindcss": "workspace:^"
}
}
`,
'jsconfig.json': json`
{
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
}
}
`,
'app.config.js': ts`
import { defineConfig } from '@solidjs/start/config'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
vite: {
plugins: [tailwindcss()],
},
})
`,
'src/entry-server.jsx': js`
// @refresh reload
import { createHandler, StartServer } from '@solidjs/start/server'
export default createHandler(() => (
<StartServer
document={({ assets, children, scripts }) => (
<html lang="en">
<head>{assets}</head>
<body>
<div id="app">{children}</div>
{scripts}
</body>
</html>
)}
/>
))
`,
'src/entry-client.jsx': js`
// @refresh reload
import { mount, StartClient } from '@solidjs/start/client'
mount(() => <StartClient />, document.getElementById('app'))
`,
'src/app.jsx': js`
import './app.css'
export default function App() {
return <h1 class="underline">Hello world!</h1>
}
`,
'src/app.css': css`@import 'tailwindcss';`,
}
test(
'dev mode',
{
fs: WORKSPACE,
},
async ({ fs, spawn, expect }) => {
let process = await spawn('pnpm vinxi dev', {
env: {
TEST: 'false', // VERY IMPORTANT OTHERWISE YOU WON'T GET OUTPUT
NODE_ENV: 'development',
},
})
let url = ''
await process.onStdout((m) => {
let match = /Local:\s*(http.*)\//.exec(m)
if (match) url = match[1]
return Boolean(url)
})
await retryAssertion(async () => {
let css = await fetchStyles(url)
expect(css).toContain(candidate`underline`)
})
await retryAssertion(async () => {
await fs.write(
'src/app.jsx',
js`
import './app.css'
export default function App() {
return <h1 class="underline font-bold">Hello world!</h1>
}
`,
)
let css = await fetchStyles(url)
expect(css).toContain(candidate`underline`)
expect(css).toContain(candidate`font-bold`)
})
},
)
Domain
Dependencies
Source
Frequently Asked Questions
What does solidstart.test.ts do?
solidstart.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain.
What does solidstart.test.ts depend on?
solidstart.test.ts imports 5 module(s): candidate, fetchStyles, retryAssertion, test, utils.ts.
Where is solidstart.test.ts in the architecture?
solidstart.test.ts is located at integrations/vite/solidstart.test.ts (domain: Oxide, directory: integrations/vite).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free