css-codesplit-cjs.spec.ts — vite Source File
Architecture documentation for css-codesplit-cjs.spec.ts, a typescript file in the vite codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3b5dc8da_c0f4_7f1f_254d_7550733aff1b["css-codesplit-cjs.spec.ts"] a340ba46_b2b7_3048_3bb3_6907a74c8464["vitest"] 3b5dc8da_c0f4_7f1f_254d_7550733aff1b --> a340ba46_b2b7_3048_3bb3_6907a74c8464 d3fd5575_295b_d6be_24dd_62d277645dc9["~utils"] 3b5dc8da_c0f4_7f1f_254d_7550733aff1b --> d3fd5575_295b_d6be_24dd_62d277645dc9 style 3b5dc8da_c0f4_7f1f_254d_7550733aff1b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { describe, expect, test } from 'vitest'
import { findAssetFile, getColor, isBuild, readManifest } from '~utils'
test.skip('should load both stylesheets', async () => {
expect(await getColor('h1')).toBe('red')
expect(await getColor('h2')).toBe('blue')
})
describe.runIf(isBuild).skip('build', () => {
test('should remove empty chunk', async () => {
expect(findAssetFile(/style.*\.js$/)).toBeUndefined()
expect(findAssetFile('main.*.js$')).toMatch(`/* empty css`)
expect(findAssetFile('other.*.js$')).toMatch(`/* empty css`)
})
test('should generate correct manifest', async () => {
const manifest = readManifest()
expect(manifest['index.html'].css.length).toBe(2)
expect(manifest['other.js'].css.length).toBe(1)
})
})
Dependencies
- vitest
- ~utils
Source
Frequently Asked Questions
What does css-codesplit-cjs.spec.ts do?
css-codesplit-cjs.spec.ts is a source file in the vite codebase, written in typescript.
What does css-codesplit-cjs.spec.ts depend on?
css-codesplit-cjs.spec.ts imports 2 module(s): vitest, ~utils.
Where is css-codesplit-cjs.spec.ts in the architecture?
css-codesplit-cjs.spec.ts is located at playground/css-codesplit-cjs/__tests__/css-codesplit-cjs.spec.ts (directory: playground/css-codesplit-cjs/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free