This commit is contained in:
Meghdad committed 2026-07-14 12:51:36 +03:30
commit f035fcef4f
134 files changed
+18678

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { describe, expect, it } from 'vitest';
import { mediaProcessEnvironment } from '../src/index.js';
describe('media child process environment', () => {
it('keeps runtime paths but strips application secrets', () => {
expect(mediaProcessEnvironment({
PATH: '/usr/bin',
LD_LIBRARY_PATH: '/opt/ffmpeg/lib',
DATABASE_URL: 'postgres://secret',
REDIS_URL: 'redis://secret',
PLAYBACK_SIGNING_SECRET: 'secret',
})).toEqual({
PATH: '/usr/bin',
LD_LIBRARY_PATH: '/opt/ffmpeg/lib',
});
});
});