mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
7f90ba0433
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: sapphi-red <[email protected]>
16 lines
478 B
TypeScript
16 lines
478 B
TypeScript
import { beforeEach, describe, expect, test } from 'vitest'
|
|
import { findAssetFile, isBuild, startDefaultServe } from '~utils'
|
|
|
|
beforeEach(async () => {
|
|
await startDefaultServe()
|
|
})
|
|
|
|
for (let i = 0; i < 5; i++) {
|
|
describe.runIf(isBuild)('css-codesplit build', () => {
|
|
test('should be consistent with same content', () => {
|
|
expect(findAssetFile(/style-.+\.css/)).toBeUndefined()
|
|
expect(findAssetFile(/style2-.+\.css/)).toMatch('h2{color:#00f}')
|
|
})
|
|
})
|
|
}
|