fix(core): update
This commit is contained in:
16
ts/index.ts
16
ts/index.ts
@@ -1,3 +1,17 @@
|
||||
import * as plugins from './test-sdk.plugins';
|
||||
import { AgTestServer } from './test-sdk.classes.testserver';
|
||||
|
||||
export let standardExport = 'Hi there! :) This is an exported string';
|
||||
export { AgTestServer };
|
||||
|
||||
let testServer: AgTestServer;
|
||||
export const createTestServer = async (handlerArg: plugins.agSdk.AAgHandler<any>) => {
|
||||
testServer = new AgTestServer(handlerArg);
|
||||
await testServer.start();
|
||||
return testServer;
|
||||
};
|
||||
|
||||
export const stopTestServer = async () => {
|
||||
if (testServer) {
|
||||
await testServer.stop();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user