Home / File/ data-uri.spec.ts — vite Source File

data-uri.spec.ts — vite Source File

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

File typescript 2 imports

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

test('plain', async () => {
  expect(await page.textContent('.plain')).toBe('hi')
})

test('base64', async () => {
  expect(await page.textContent('.base64')).toBe('hi')
})

test('svg data uri minify', async () => {
  const sqdqs = await page.getByTestId('sqdqs').boundingBox()
  const sqsdqs = await page.getByTestId('sqsdqs').boundingBox()
  const dqsqs = await page.getByTestId('dqsqs').boundingBox()
  const dqssqs = await page.getByTestId('dqssqs').boundingBox()

  expect(sqdqs.height).toBe(100)
  expect(sqsdqs.height).toBe(100)
  expect(dqsqs.height).toBe(100)
  expect(dqssqs.height).toBe(100)
})

test.runIf(isBuild)('should compile away the import for build', async () => {
  const file = findAssetFile('index')
  expect(file).not.toMatch('import')
})

Dependencies

  • vitest
  • ~utils

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free