legacy-ssr.spec.ts — vite Source File
Architecture documentation for legacy-ssr.spec.ts, a typescript file in the vite codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b8bc32c3_2a2e_3dbd_c7f6_b60d2819000a["legacy-ssr.spec.ts"] 9e7eed30_d38a_0706_e488_dc489dabdb41["serve.ts"] b8bc32c3_2a2e_3dbd_c7f6_b60d2819000a --> 9e7eed30_d38a_0706_e488_dc489dabdb41 a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"] b8bc32c3_2a2e_3dbd_c7f6_b60d2819000a --> a340ba46_b2b7_3048_3bb3_6907a74c8464 d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"] b8bc32c3_2a2e_3dbd_c7f6_b60d2819000a --> d3fd5575_295b_d6be_24dd_62d277645dc9 style b8bc32c3_2a2e_3dbd_c7f6_b60d2819000a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { describe, expect, test } from 'vitest'
import { port } from './serve'
import { isBuild, page } from '~utils'
const url = `http://localhost:${port}`
describe.runIf(isBuild)('legacy-ssr', () => {
test('should work', async () => {
await page.goto(url)
expect(await page.textContent('#app')).toMatch('Hello')
})
test('import.meta.env.LEGACY', async () => {
// SSR build is always modern
expect(await page.textContent('#env')).toMatch('false')
})
})
Domain
Dependencies
- serve.ts
- vitest
- ~utils
Source
Frequently Asked Questions
What does legacy-ssr.spec.ts do?
legacy-ssr.spec.ts is a source file in the vite codebase, written in typescript. It belongs to the ViteCore domain.
What does legacy-ssr.spec.ts depend on?
legacy-ssr.spec.ts imports 3 module(s): serve.ts, vitest, ~utils.
Where is legacy-ssr.spec.ts in the architecture?
legacy-ssr.spec.ts is located at playground/legacy/__tests__/ssr/legacy-ssr.spec.ts (domain: ViteCore, directory: playground/legacy/__tests__/ssr).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free