Home / File/ module-graph.spec.ts — vite Source File

module-graph.spec.ts — vite Source File

Architecture documentation for module-graph.spec.ts, a typescript file in the vite codebase. 2 imports, 0 dependents.

File typescript 2 imports

Entity Profile

Dependency Diagram

graph LR
  f5967a31_2976_067e_e528_0a2c731dc4c9["module-graph.spec.ts"]
  a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"]
  f5967a31_2976_067e_e528_0a2c731dc4c9 --> a340ba46_b2b7_3048_3bb3_6907a74c8464
  d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"]
  f5967a31_2976_067e_e528_0a2c731dc4c9 --> d3fd5575_295b_d6be_24dd_62d277645dc9
  style f5967a31_2976_067e_e528_0a2c731dc4c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { expect, test } from 'vitest'
import { isServe, page, viteServer } from '~utils'

test.runIf(isServe)('importedUrls order is preserved', async () => {
  const el = page.locator('.imported-urls-order')
  expect(await el.textContent()).toBe('[success]')
  const mod = await viteServer.environments.client.moduleGraph.getModuleByUrl(
    '/imported-urls-order.js',
  )
  const importedModuleIds = [...mod.importedModules].map((m) => m.url)
  expect(importedModuleIds).toEqual(['\x00virtual:slow-module', '/empty.js'])
})

Dependencies

  • vitest
  • ~utils

Frequently Asked Questions

What does module-graph.spec.ts do?
module-graph.spec.ts is a source file in the vite codebase, written in typescript.
What does module-graph.spec.ts depend on?
module-graph.spec.ts imports 2 module(s): vitest, ~utils.
Where is module-graph.spec.ts in the architecture?
module-graph.spec.ts is located at playground/module-graph/__tests__/module-graph.spec.ts (directory: playground/module-graph/__tests__).

Analyze Your Own Codebase

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

Try Supermodel Free