Home / File/ external.spec.ts — vite Source File

external.spec.ts — vite Source File

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

File typescript 2 imports

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

import { describe, expect, test } from 'vitest'
import { browserLogs, isBuild, page } from '~utils'

test('importmap', () => {
  expect(browserLogs).not.toContain(
    'An import map is added after module script load was triggered.',
  )
})

test('should have default exports', async () => {
  expect(await page.textContent('#imported-slash5-exists')).toBe('true')
  expect(await page.textContent('#imported-slash3-exists')).toBe('true')
  expect(await page.textContent('#required-slash3-exists')).toBe('true')
})

describe.runIf(isBuild)('build', () => {
  test('should externalize imported packages', async () => {
    // If `vue` is successfully externalized, the page should use the version from the import map
    expect(await page.textContent('#imported-vue-version')).toBe('3.4.38')
  })

  test('should externalize required packages', async () => {
    // If `vue` is successfully externalized, the page should use the version from the import map
    expect(await page.textContent('#required-vue-version')).toBe('3.4.38')
  })
})

Dependencies

  • vitest
  • ~utils

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free