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

Function setupServer

test/system-ca/test-use-system-ca-worker-enable.mjs:33–45  ·  view source on GitHub ↗
(key, cert)

Source from the content-addressed store, hash-verified

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

Calls 2

onceFunction · 0.90
listenMethod · 0.80

Tested by

no test coverage detected