legacy-no-polyfills.spec.ts — vite Source File
Architecture documentation for legacy-no-polyfills.spec.ts, a typescript file in the vite codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e835c820_707e_a83e_d36f_2189fa5cae99["legacy-no-polyfills.spec.ts"] a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"] e835c820_707e_a83e_d36f_2189fa5cae99 --> a340ba46_b2b7_3048_3bb3_6907a74c8464 d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"] e835c820_707e_a83e_d36f_2189fa5cae99 --> d3fd5575_295b_d6be_24dd_62d277645dc9 style e835c820_707e_a83e_d36f_2189fa5cae99 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expect, test } from 'vitest'
import { isBuild, page, viteTestUrl } from '~utils'
test('should load and execute the JS file', async () => {
await page.goto(viteTestUrl + '/no-polyfills.html')
await expect.poll(() => page.textContent('main')).toMatch('👋')
})
test.runIf(isBuild)('includes a script tag for SystemJS', async () => {
await expect
.poll(() => page.getAttribute('#vite-legacy-polyfill', 'src'))
.toMatch(/.\/assets\/polyfills-legacy-(.+)\.js/)
await expect
.poll(() => page.getAttribute('#vite-legacy-entry', 'data-src'))
.toMatch(/.\/assets\/index-legacy-(.+)\.js/)
})
Dependencies
- vitest
- ~utils
Source
Frequently Asked Questions
What does legacy-no-polyfills.spec.ts do?
legacy-no-polyfills.spec.ts is a source file in the vite codebase, written in typescript.
What does legacy-no-polyfills.spec.ts depend on?
legacy-no-polyfills.spec.ts imports 2 module(s): vitest, ~utils.
Where is legacy-no-polyfills.spec.ts in the architecture?
legacy-no-polyfills.spec.ts is located at playground/legacy/__tests__/no-polyfills/legacy-no-polyfills.spec.ts (directory: playground/legacy/__tests__/no-polyfills).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free