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

Function setupServer

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

onceFunction · 0.90
listenMethod · 0.80

Tested by

no test coverage detected