Skip to content

fix: avoid leaking mocha types from profiler clock - #1326

Merged
KuznetsovRoman merged 1 commit into
masterfrom
INFRADUTY-30616
Sep 11, 2026
Merged

fix: avoid leaking mocha types from profiler clock#1326
KuznetsovRoman merged 1 commit into
masterfrom
INFRADUTY-30616

Conversation

@KuznetsovRoman

Copy link
Copy Markdown
Member

No description provided.

@pkg-pr-new

pkg-pr-new Bot commented Sep 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1326

commit: 8d797f1

/** Unix wall-clock timestamp in milliseconds. It is suitable for timestamps shared between processes. */
epochNow(): number;
/** Process CPU usage since startup, or since `previousValue` when it is supplied. */
cpuUsage(previousValue?: NodeJS.CpuUsage): NodeJS.CpuUsage;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

"NodeJS.CpuUsage" causes typescript to add reference to mocha types

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hmmmmmm why is that so, I wonder?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Because NodeJS is a global namespace, which is expanded by:

  • @types/node
  • @types/mocha
  • expect-webdriverio

So all those 3 are referenced

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

✅ Testplane browser-env run succeed

Report

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

✅ Testplane E2E run succeed

Report

@KuznetsovRoman
KuznetsovRoman merged commit 5687187 into master Sep 11, 2026
7 of 17 checks passed
@KuznetsovRoman
KuznetsovRoman deleted the INFRADUTY-30616 branch September 11, 2026 09:57
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.

2 participants