12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
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,/)
|
|
})
|
|
})
|