20 lines
546 B
TypeScript
20 lines
546 B
TypeScript
import {Bootstrap} from './application/Bootstrap'
|
|
import {configureServer} from './application/configureServer'
|
|
import {IAPIDef} from '@rondo.dev/common'
|
|
import {TestUtils} from './test-utils'
|
|
import {config} from './config'
|
|
import {createNamespace} from 'cls-hooked'
|
|
|
|
export const exit = jest.fn()
|
|
|
|
export const bootstrap = new Bootstrap({
|
|
config,
|
|
configureServer,
|
|
namespace: createNamespace('test'),
|
|
exit,
|
|
})
|
|
|
|
// TODO separate IAPIDef between projects
|
|
export const test = new TestUtils<IAPIDef>(bootstrap)
|
|
export const {request} = test
|