Skip to content

test: use tree-kill to kill e2e child process#861

Merged
9aoy merged 2 commits intomainfrom
rstest-e2e
Jan 12, 2026
Merged

test: use tree-kill to kill e2e child process#861
9aoy merged 2 commits intomainfrom
rstest-e2e

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Jan 12, 2026

Summary

use tree-kill to kill e2e child process.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 12, 2026 10:19
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 12, 2026

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 6bec4e3
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/6964d532becca90008047396
😎 Deploy Preview https://deploy-preview-861--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR centralizes the tree-kill logic for killing child processes in e2e tests by moving it from individual test files into the Cli class constructor. This ensures consistent process cleanup across all tests, particularly important on Windows where child processes may not be killed by default.

Changes:

  • Centralized tree-kill logic in the Cli class by overriding the kill method
  • Simplified test file by removing redundant tree-kill code and using the centralized implementation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
e2e/scripts/index.ts Added tree-kill import and overrode the exec.kill method to automatically handle killing the entire process tree with fallback to original kill method
e2e/watch/restart.test.ts Removed manual tree-kill logic and direct import, now uses the centralized kill method from Cli class

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@9aoy 9aoy merged commit ffc6534 into main Jan 12, 2026
24 of 25 checks passed
@9aoy 9aoy deleted the rstest-e2e branch January 12, 2026 12:02
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