This commit is contained in:
2026-08-07 17:14:42 +08:00
parent c0590ffc73
commit 8474829b0e
7 changed files with 149 additions and 117 deletions
+11
View File
@@ -0,0 +1,11 @@
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import { describe, expect, it } from 'vitest'
const configSource = readFileSync(resolve(process.cwd(), 'vite.config.ts'), 'utf8')
describe('Vite development server', () => {
it('fails fast when the dedicated admin development port is occupied', () => {
expect(configSource).toMatch(/server:\s*\{\s*strictPort: true,/)
})
})