tests.ts — vite Source File
Architecture documentation for tests.ts, a typescript file in the vite codebase. 2 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR 627077a7_48ac_3666_109d_8100e221b055["tests.ts"] a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"] 627077a7_48ac_3666_109d_8100e221b055 --> a340ba46_b2b7_3048_3bb3_6907a74c8464 d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"] 627077a7_48ac_3666_109d_8100e221b055 --> d3fd5575_295b_d6be_24dd_62d277645dc9 43e633a8_90f3_d19f_4f97_d4907b3aba12["transform-plugin.spec.ts"] 43e633a8_90f3_d19f_4f97_d4907b3aba12 --> 627077a7_48ac_3666_109d_8100e221b055 f970ff0b_17f4_2b3e_ce36_c7e7abd389ea["transform-plugin.spec.ts"] f970ff0b_17f4_2b3e_ce36_c7e7abd389ea --> 627077a7_48ac_3666_109d_8100e221b055 style 627077a7_48ac_3666_109d_8100e221b055 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expect, test } from 'vitest'
import { editFile, isBuild, page } from '~utils'
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
Functions
Dependencies
- vitest
- ~utils
Imported By
Source
Frequently Asked Questions
What does tests.ts do?
tests.ts is a source file in the vite codebase, written in typescript. It belongs to the ViteCore domain, ConfigEngine subdomain.
What functions are defined in tests.ts?
tests.ts defines 1 function(s): tests.
What does tests.ts depend on?
tests.ts imports 2 module(s): vitest, ~utils.
What files import tests.ts?
tests.ts is imported by 2 file(s): transform-plugin.spec.ts, transform-plugin.spec.ts.
Where is tests.ts in the architecture?
tests.ts is located at playground/transform-plugin/__tests__/tests.ts (domain: ViteCore, subdomain: ConfigEngine, directory: playground/transform-plugin/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free