init
This commit is contained in:
134 files changed
+18678
No files matched your search
@@ -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',
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user