MCPcopy Index your code
hub / github.com/nodejs/node / setupServer

Function setupServer

test/system-ca/test-native-root-certs-env.mjs:32–41  ·  view source on GitHub ↗
(key, cert)

Source from the content-addressed store, hash-verified

30describe('use-system-ca', function() {
31
32 async function setupServer(key, cert) {
33 const theServer = https.createServer({
34 key: fixtures.readKey(key),
35 cert: fixtures.readKey(cert),
36 }, handleRequest);
37 theServer.listen(0);
38 await once(theServer, 'listening');
39
40 return theServer;
41 }
42
43 let server;
44

Callers 1

Calls 2

onceFunction · 0.90
listenMethod · 0.80

Tested by

no test coverage detected