Skip to content

fix: type "NEW_BROWSER" event in worker context - #1304

Merged
DudaGod merged 1 commit into
masterfrom
INFRADUTY-30473.fix_worker_new_browser_type
Jul 30, 2026
Merged

fix: type "NEW_BROWSER" event in worker context#1304
DudaGod merged 1 commit into
masterfrom
INFRADUTY-30473.fix_worker_new_browser_type

Conversation

@DudaGod

@DudaGod DudaGod commented Jul 30, 2026

Copy link
Copy Markdown
Member

What is done

  • fix typings for NEW_BROWSER worker-events now available after check testplane.isWorker()
  • add type tests

@pkg-pr-new

pkg-pr-new Bot commented Jul 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 23746bc

@github-actions

Copy link
Copy Markdown

✅ Testplane E2E run succeed

Report

@github-actions

Copy link
Copy Markdown

✅ Testplane browser-env run succeed

Report

@@ -0,0 +1,16 @@
import type Testplane from "../../src";

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.

add type tests which is checked when run npm run check-types or npm test

Comment thread src/testplane.ts
}

isWorker(): boolean {
isWorker(): this is this & WorkerEventEmitter<this> {

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.

after check type is expanding by worker events

@DudaGod
DudaGod merged commit de93b96 into master Jul 30, 2026
9 checks passed
@DudaGod
DudaGod deleted the INFRADUTY-30473.fix_worker_new_browser_type branch July 30, 2026 11:07
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