Home / File/ astro.test.ts — tailwindcss Source File

astro.test.ts — tailwindcss Source File

Architecture documentation for astro.test.ts, a typescript file in the tailwindcss codebase. 5 imports, 0 dependents.

File typescript Oxide 5 imports

Entity Profile

Dependency Diagram

graph LR
  f115bcb7_5601_dee4_6c31_e0b2b8afb8fd["astro.test.ts"]
  7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"]
  f115bcb7_5601_dee4_6c31_e0b2b8afb8fd --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac
  ce18acb2_833c_61a7_166d_0fd7613ce1c0["candidate"]
  f115bcb7_5601_dee4_6c31_e0b2b8afb8fd --> ce18acb2_833c_61a7_166d_0fd7613ce1c0
  522399f9_a5a8_fa94_794a_917ab0d0a66d["fetchStyles"]
  f115bcb7_5601_dee4_6c31_e0b2b8afb8fd --> 522399f9_a5a8_fa94_794a_917ab0d0a66d
  22238dde_7df7_64d5_1424_a93cf2421b15["retryAssertion"]
  f115bcb7_5601_dee4_6c31_e0b2b8afb8fd --> 22238dde_7df7_64d5_1424_a93cf2421b15
  44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"]
  f115bcb7_5601_dee4_6c31_e0b2b8afb8fd --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04
  style f115bcb7_5601_dee4_6c31_e0b2b8afb8fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { candidate, fetchStyles, html, js, json, retryAssertion, test, ts } from '../utils'

test(
  'dev mode',
  {
    fs: {
      'package.json': json`
        {
          "type": "module",
          "dependencies": {
            "astro": "^4.15.2",
            "@tailwindcss/vite": "workspace:^",
            "tailwindcss": "workspace:^"
          }
        }
      `,
      'astro.config.mjs': ts`
        import tailwindcss from '@tailwindcss/vite'
        import { defineConfig } from 'astro/config'

        // https://astro.build/config
        export default defineConfig({
          vite: { plugins: [tailwindcss()] },
          build: { inlineStylesheets: 'never' },
        })
      `,
      'src/pages/index.astro': html`
       <div class="underline">Hello, world!</div>

        <style is:global>
          @import 'tailwindcss';
        </style>
      `,
    },
  },
  async ({ fs, spawn, expect }) => {
    let process = await spawn('pnpm astro dev')
    await process.onStdout((m) => m.includes('ready in'))

    let url = ''
    await process.onStdout((m) => {
      let match = /Local\s*(http.*)\//.exec(m)
      if (match) url = match[1]
      return Boolean(url)
    })

    await process.onStdout((m) => m.includes('watching for file changes'))

    await retryAssertion(async () => {
      let css = await fetchStyles(url)
      expect(css).toContain(candidate`underline`)
    })

    await retryAssertion(async () => {
      await fs.write(
        'src/pages/index.astro',
        html`
          <div class="underline font-bold">Hello, world!</div>

          <style is:global>
// ... (72 more lines)

Domain

Frequently Asked Questions

What does astro.test.ts do?
astro.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain.
What does astro.test.ts depend on?
astro.test.ts imports 5 module(s): candidate, fetchStyles, retryAssertion, test, utils.ts.
Where is astro.test.ts in the architecture?
astro.test.ts is located at integrations/vite/astro.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