MCPcopy Create free account
hub / github.com/code-pushup/cli / createAuthServer

Function createAuthServer

e2e/plugin-axe-e2e/mocks/fixtures/auth/server/server.ts:73–81  ·  view source on GitHub ↗
(serverDir: string)

Source from the content-addressed store, hash-verified

71}
72
73export function createAuthServer(serverDir: string): Server {
74 return createServer((req, res) => {
75 handleRequest(req, res, serverDir).catch(error => {
76 console.error('Server error:', error);
77 res.writeHead(500, { 'Content-Type': 'text/plain' });
78 res.end('Internal Server Error');
79 });
80 });
81}
82
83export function startServer(server: Server, port: number): Promise<void> {
84 return new Promise((resolve, reject) => {

Callers 1

auth.e2e.test.tsFile · 0.85

Calls 2

handleRequestFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected