godcrm/deploy-bot/history3496.test.mjs
2026-10-29 07:39:04 +03:00

10 lines
544 B
JavaScript

// @vitest-environment node
import { test, expect } from 'vitest';
import { execFileSync } from 'node:child_process';
import { fileURLToPath } from 'node:url';
test('history3496 transport, runner and installation security checks', () => {
const output = execFileSync('/usr/bin/node', ['--test', ...['history3496.checks.cjs', 'history3496-runner.checks.cjs'].map(f => fileURLToPath(new URL(f, import.meta.url)))], {
env: { PATH: '/usr/bin:/bin' }, encoding: 'utf8', timeout: 30000,
});
expect(output).toContain('# fail 0');
}, 35000);