tests() — vite Function Reference
Architecture documentation for the tests() function in tests.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 3c5069de_ae39_b08d_dd49_f4138a637b08["tests()"] 627077a7_48ac_3666_109d_8100e221b055["tests.ts"] 3c5069de_ae39_b08d_dd49_f4138a637b08 -->|defined in| 627077a7_48ac_3666_109d_8100e221b055 style 3c5069de_ae39_b08d_dd49_f4138a637b08 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/transform-plugin/__tests__/tests.ts lines 4–15
export const tests = () => {
test('should re-run transform when dependencies are edited', async () => {
expect(await page.textContent('#transform-count')).toBe('1')
if (isBuild) return
editFile('plugin-dep.js', (str) => str)
await expect.poll(() => page.textContent('#transform-count')).toBe('2')
editFile('plugin-dep-load.js', (str) => str)
await expect.poll(() => page.textContent('#transform-count')).toBe('3')
})
}
Domain
Subdomains
Source
Frequently Asked Questions
What does tests() do?
tests() is a function in the vite codebase, defined in playground/transform-plugin/__tests__/tests.ts.
Where is tests() defined?
tests() is defined in playground/transform-plugin/__tests__/tests.ts at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free