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 046ebf49_f53b_934b_218a_24bd615d7913["solidstart.test.ts"] 9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"] 046ebf49_f53b_934b_218a_24bd615d7913 --> 9ffd1dda_9675_c514_373d_0f4ab4648249 b7531519_9055_fbfa_5f69_ebc8586b0422["candidate"] 046ebf49_f53b_934b_218a_24bd615d7913 --> b7531519_9055_fbfa_5f69_ebc8586b0422 41c6e4f2_197a_5e83_1beb_584bbb4130fa["fetchStyles"] 046ebf49_f53b_934b_218a_24bd615d7913 --> 41c6e4f2_197a_5e83_1beb_584bbb4130fa 329ca5ee_2e24_1ec5_6818_8fdc3622dda9["retryAssertion"] 046ebf49_f53b_934b_218a_24bd615d7913 --> 329ca5ee_2e24_1ec5_6818_8fdc3622dda9 f11e3be9_51f8_140b_68b0_f58ddd082595["test"] 046ebf49_f53b_934b_218a_24bd615d7913 --> f11e3be9_51f8_140b_68b0_f58ddd082595 style 046ebf49_f53b_934b_218a_24bd615d7913 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 OxideEngine 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: OxideEngine, directory: integrations/vite).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free