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

Method close

packages/plugin-axe/src/lib/runner/run-axe.ts:97–106  ·  view source on GitHub ↗

Closes the browser and clears authentication state.

()

Source from the content-addressed store, hash-verified

95
96 /** Closes the browser and clears authentication state. */
97 async close(): Promise<void> {
98 this.storageState = undefined;
99 this.browserInstalled = false;
100
101 if (this.browser) {
102 await this.browser.close();
103 this.browser = undefined;
104 logger.debug('Closed Chromium browser');
105 }
106 }
107
108 /**
109 * Ensures Chromium browser binary is installed before running accessibility audits.

Callers 4

createRunnerFunctionFunction · 0.95
analyzeUrlMethod · 0.45
captureAuthStateMethod · 0.45
stopServerFunction · 0.45

Calls 1

debugMethod · 0.45

Tested by

no test coverage detected