Skip to content

Conversation

@nattallius
Copy link
Collaborator

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete the file

@OrKoN OrKoN changed the title Add issues export feat: export console issues Oct 31, 2025
BUILD_DIR,
'node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions',
);
fs.cpSync(sourceDir, destDir, {recursive: true});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the destDir the same as sourceDir?

import * as path from 'node:path';

const DESCRIPTIONS_PATH = path.join(
process.cwd(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not use the process.cwd() because the server could be start from any current working directory. Instead let's use import.meta.dirname

}

protected async subscribeForIssues(page: Page) {
if (this instanceof NetworkCollector) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's create a subclass for ConsoleCollector and invoke this by extending the addPage call. Let's also make sure we set up listeners first (by calling this.#initializePage) and then call subscribeForIssues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants