import * as plugins from './test-sdk.plugins'; import { AgTestServer } from './test-sdk.classes.testserver'; export { AgTestServer }; let testServer: AgTestServer; export const createTestServer = async (handlerArg: plugins.agSdk.AAgHandler) => { testServer = new AgTestServer(handlerArg); await testServer.start(); return testServer; }; export const stopTestServer = async () => { if (testServer) { await testServer.stop(); } };