Home / File/ fs-serve-deny.spec.ts — vite Source File

fs-serve-deny.spec.ts — vite Source File

Architecture documentation for fs-serve-deny.spec.ts, a typescript file in the vite codebase. 2 imports, 0 dependents.

File typescript 2 imports

Entity Profile

Dependency Diagram

graph LR
  95d6cd70_f12e_4503_d35e_6cbad1eba233["fs-serve-deny.spec.ts"]
  a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"]
  95d6cd70_f12e_4503_d35e_6cbad1eba233 --> a340ba46_b2b7_3048_3bb3_6907a74c8464
  d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"]
  95d6cd70_f12e_4503_d35e_6cbad1eba233 --> d3fd5575_295b_d6be_24dd_62d277645dc9
  style 95d6cd70_f12e_4503_d35e_6cbad1eba233 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

describe.runIf(isServe)('main', () => {
  test('**/deny/** should deny src/deny/deny.txt', async () => {
    const res = await page.request.fetch(
      new URL('/src/deny/deny.txt', viteTestUrl).href,
    )
    expect(res.status()).toBe(403)
  })
  test('**/deny/** should deny src/deny/.deny', async () => {
    const res = await page.request.fetch(
      new URL('/src/deny/.deny', viteTestUrl).href,
    )
    expect(res.status()).toBe(403)
  })
})

Dependencies

  • vitest
  • ~utils

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free