Files
RedditBot/tests/docker-compose.test.ts
T
2026-08-08 14:48:58 +01:00

13 lines
563 B
TypeScript

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');
});
});