MCPcopy Create free account
hub / github.com/EvoMap/evolver / makeServer

Function makeServer

test/proxyTokenReuse.test.js:39–52  ·  view source on GitHub ↗
(port, opts = {})

Source from the content-addressed store, hash-verified

37}
38
39function makeServer(port, opts = {}) {
40 const store = new MailboxStore(tmpDataDir());
41 const routes = buildRoutes(store, {
42 assetFetch: async () => ({ assets: [] }),
43 assetSearch: async () => ({ results: [] }),
44 assetValidate: async () => ({ valid: true }),
45 }, null, {});
46 const server = new ProxyHttpServer(routes, {
47 port,
48 logger: { log: () => {}, error: () => {}, warn: () => {} },
49 clientSettings: opts.clientSettings,
50 });
51 return { server, store };
52}
53
54describe('ProxyHttpServer token reuse', () => {
55 let savedSettingsDir;

Callers 1

Calls 2

buildRoutesFunction · 0.85
tmpDataDirFunction · 0.70

Tested by

no test coverage detected