13 lines
498 B
TypeScript
13 lines
498 B
TypeScript
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('container runtime', () => {
|
|
it('starts the bot directly without an interactive display or Chrome process', () => {
|
|
const dockerfile = fs.readFileSync(path.resolve('Dockerfile'), 'utf8');
|
|
|
|
expect(dockerfile).toContain('CMD ["node", "dist/index.js"]');
|
|
expect(dockerfile).not.toMatch(/entrypoint|Xvfb|x11vnc|noVNC|websockify|fluxbox|google-chrome|CHROME_CDP/i);
|
|
});
|
|
});
|