import { getFastify } from '../../server/server' ; import { isRecipient , createRecipient , isNewEDV } from '../test-utils' ; import mock from '../mock' ; const { EdvClient , EdvDocument } = require ( 'edv-client' ) ; let invocationSigner ; let keyResolver ; export const getMocks = async ( ) => { const fastifyServer = await getFastify ( ) ; await fastifyServer . store . resetDatabase ( ) ; await fastifyServer . listen ( 9876 ) ; await mock . init ( ) ; invocationSigner = mock . invocationSigner ; keyResolver = mock . keyResolver ; return { fastifyServer , invocationSigner , keyResolver , EdvClient , EdvDocument , mock , isRecipient , createRecipient , isNewEDV } ; } ;