This commit is contained in:
2026-08-07 17:14:45 +08:00
parent 0bd872fdbf
commit 8575df0793
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import test from 'node:test'
const configSource = readFileSync(new URL('../../vite.config.ts', import.meta.url), 'utf8')
test('fails fast when the dedicated client development port is occupied', () => {
assert.match(configSource, /server:\s*\{\s*strictPort: true,/)
})