优化
This commit is contained in:
@@ -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,/)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user