env-nested.spec.ts — vite Source File
Architecture documentation for env-nested.spec.ts, a typescript file in the vite codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 0fa147f5_0e50_e51c_32fb_e3be617c2fb7["env-nested.spec.ts"] a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"] 0fa147f5_0e50_e51c_32fb_e3be617c2fb7 --> a340ba46_b2b7_3048_3bb3_6907a74c8464 d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"] 0fa147f5_0e50_e51c_32fb_e3be617c2fb7 --> d3fd5575_295b_d6be_24dd_62d277645dc9 style 0fa147f5_0e50_e51c_32fb_e3be617c2fb7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expect, test } from 'vitest'
import { isBuild, page } from '~utils'
const mode = isBuild ? `production` : `development`
test('mode', async () => {
expect(await page.textContent('.mode')).toBe(mode)
})
test('mode file override', async () => {
expect(await page.textContent('.mode-file')).toBe(`.env.${mode}`)
})
test('should not load parent .env file', async () => {
expect(await page.textContent('.parent-env')).not.toBe('dont_load_me')
})
Dependencies
- vitest
- ~utils
Source
Frequently Asked Questions
What does env-nested.spec.ts do?
env-nested.spec.ts is a source file in the vite codebase, written in typescript.
What does env-nested.spec.ts depend on?
env-nested.spec.ts imports 2 module(s): vitest, ~utils.
Where is env-nested.spec.ts in the architecture?
env-nested.spec.ts is located at playground/env-nested/__tests__/env-nested.spec.ts (directory: playground/env-nested/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free