Home / File/ proxy-bypass.spec.ts — vite Source File

proxy-bypass.spec.ts — vite Source File

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

File typescript 2 imports

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

import { expect, test, vi } from 'vitest'
import { browserLogs, page, serverLogs } from '~utils'

test('proxy-bypass', async () => {
  await vi.waitFor(() => {
    expect(browserLogs.join('\n')).toContain('status of 404 (Not Found)')
  })
})

test('async-proxy-bypass', async () => {
  const content = await page.frame('async-response').content()
  expect(content).toContain('Hello after 4 ms (async timeout)')
})

test('async-proxy-bypass-with-error', async () => {
  await vi.waitFor(() => {
    expect(serverLogs.join('\n')).toContain('bypass error')
  })
})

Dependencies

  • vitest
  • ~utils

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free