hmr-root.spec.ts — vite Source File
Architecture documentation for hmr-root.spec.ts, a typescript file in the vite codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3d212b22_bd0f_2b65_8d2c_5b5ec78843e0["hmr-root.spec.ts"] a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"] 3d212b22_bd0f_2b65_8d2c_5b5ec78843e0 --> a340ba46_b2b7_3048_3bb3_6907a74c8464 d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"] 3d212b22_bd0f_2b65_8d2c_5b5ec78843e0 --> d3fd5575_295b_d6be_24dd_62d277645dc9 style 3d212b22_bd0f_2b65_8d2c_5b5ec78843e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expect, test } from 'vitest'
import { editFile, isServe, page } from '~utils'
test.runIf(isServe)('should watch files outside root', async () => {
expect(await page.textContent('#foo')).toBe('foo')
editFile('foo.js', (code) => code.replace("'foo'", "'foobar'"))
await page.waitForEvent('load')
await expect.poll(() => page.textContent('#foo')).toBe('foobar')
})
Dependencies
- vitest
- ~utils
Source
Frequently Asked Questions
What does hmr-root.spec.ts do?
hmr-root.spec.ts is a source file in the vite codebase, written in typescript.
What does hmr-root.spec.ts depend on?
hmr-root.spec.ts imports 2 module(s): vitest, ~utils.
Where is hmr-root.spec.ts in the architecture?
hmr-root.spec.ts is located at playground/hmr-root/__tests__/hmr-root.spec.ts (directory: playground/hmr-root/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free