import { readFile } from 'node:fs/promises'; import { describe, expect, it } from 'vitest'; describe('Dokploy noVNC deployment configuration', () => { it('publishes noVNC directly and leaves its public URL deployment-configured', async () => { const compose = await readFile(new URL('../docker-compose.yml', import.meta.url), 'utf8'); expect(compose).toMatch(/ports:\s*\r?\n\s*- "16080:6080"/); expect(compose).toMatch(/NOVNC_PUBLIC_URL=\$\{NOVNC_PUBLIC_URL\}/); expect(compose).not.toContain('https://red-vnc.apps.jbrunton.co.uk'); }); });