Home / File/ optimize-missing-deps.spec.ts — vite Source File

optimize-missing-deps.spec.ts — vite Source File

Architecture documentation for optimize-missing-deps.spec.ts, a typescript file in the vite codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  3a71a08a_9983_ccf0_9d64_7166622035bd["optimize-missing-deps.spec.ts"]
  fd9e0a52_8ac2_8bd5_8789_9bf1926c77d8["serve.ts"]
  3a71a08a_9983_ccf0_9d64_7166622035bd --> fd9e0a52_8ac2_8bd5_8789_9bf1926c77d8
  a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"]
  3a71a08a_9983_ccf0_9d64_7166622035bd --> a340ba46_b2b7_3048_3bb3_6907a74c8464
  d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"]
  3a71a08a_9983_ccf0_9d64_7166622035bd --> d3fd5575_295b_d6be_24dd_62d277645dc9
  style 3a71a08a_9983_ccf0_9d64_7166622035bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { expect, test } from 'vitest'
import { port } from './serve'
import { isBuild, page } from '~utils'

const url = `http://localhost:${port}/`

test.runIf(!isBuild)('optimize', async () => {
  await page.goto(url)
  // reload page to get optimized missing deps
  await page.reload()
  await expect.poll(() => page.textContent('div')).toMatch('Client')

  // raw http request
  const aboutHtml = await (await fetch(url)).text()
  expect(aboutHtml).toContain('Server')
})

Domain

Dependencies

Frequently Asked Questions

What does optimize-missing-deps.spec.ts do?
optimize-missing-deps.spec.ts is a source file in the vite codebase, written in typescript. It belongs to the ViteCore domain.
What does optimize-missing-deps.spec.ts depend on?
optimize-missing-deps.spec.ts imports 3 module(s): serve.ts, vitest, ~utils.
Where is optimize-missing-deps.spec.ts in the architecture?
optimize-missing-deps.spec.ts is located at playground/optimize-missing-deps/__test__/optimize-missing-deps.spec.ts (domain: ViteCore, directory: playground/optimize-missing-deps/__test__).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free