webstreamr-github/src/test/index.ts
2025-06-19 12:21:31 +00:00

10 lines
274 B
TypeScript

import { Config, Context } from '../types';
import { getDefaultConfig } from '../utils';
export const createTestContext = (config?: Config): Context => {
return {
hostUrl: new URL('http://localhost'),
id: 'test',
config: config ?? getDefaultConfig(),
};
};