You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR resolves a TODO in the test runner to allow signal handling to be enabled.
Purpose
The test runner's signal handlers are only attached when it is invoked via the --test CLI flag (isTestRunner === true). This
prevents users from opting into the same behavior in scenarios where isTestRunner === false, such as when calling the run() API from a JS file. In these cases, a SIGINT signal would terminate the process abruptly without proper test reporting.
Therefore this PR introduces a new hookSignal option to the run() function, allowing developers to enable signal handling for these scenarios.
❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.93%. Comparing base (bfcba89) to head (54a6e25). ⚠️ Report is 1511 commits behind head on main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
needs-ciPRs that need a full CI run.test_runnerIssues and PRs related to the test runner subsystem.
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR resolves a TODO in the test runner to allow signal handling to be enabled.
Purpose
The test runner's signal handlers are only attached when it is invoked via the
--testCLI flag (isTestRunner === true). Thisprevents users from opting into the same behavior in scenarios where
isTestRunner === false, such as when calling the run() API from a JS file. In these cases, aSIGINTsignal would terminate the process abruptly without proper test reporting.Therefore this PR introduces a new
hookSignaloption to the run() function, allowing developers to enable signal handling for these scenarios.I would appreciate your feedback😄
Related Issues