MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / serverHooks

Function serverHooks

tests/server.ts:110–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108}
109
110export function serverHooks() {
111 const server = new TestServer(TestServer.randomPort());
112 before(async () => {
113 await server.start();
114 });
115 after(async () => {
116 await server.stop();
117 });
118 afterEach(() => {
119 server.restore();
120 });
121
122 return server;
123}

Callers 12

browser.test.tsFile · 0.85
input.test.tsFile · 0.85
network.test.tsFile · 0.85
lighthouse.test.tsFile · 0.85
script.test.tsFile · 0.85
emulation.test.tsFile · 0.85
console.test.tsFile · 0.85
extensions.test.tsFile · 0.85

Calls 4

startMethod · 0.95
stopMethod · 0.95
restoreMethod · 0.95
randomPortMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…