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 pull request refactors several test suites to improve reliability, resource management, and parallelization. The main focus is on updating browser plugin and crawler tests to use
test.concurrentfor parallel execution, ensuring proper cleanup of resources, and making asynchronous test timing more robust. It also updates some package dependencies.Test Parallelization and Resource Management
test/browser-pool/browser-plugins/plugins.test.tsandtest/core/crawlers/browser_crawler.test.tsto usetest.concurrent, enabling parallel test execution for faster and more reliable CI runs. Each test now instantiates plugins and resources locally, and ensures proper cleanup withfinallyblocks to close browsers and destroy emulators. [1] [2] [3] [4]Improved Asynchronous Test Timing
test/core/crawlers/basic_crawler.test.tsto use buffered timeouts for adding requests and more robust completion checks, reducing flakiness in tests that depend on asynchronous queue operations. [1] [2]Enhanced Test Assertions and Spying
Dependency Updates
vitestand@vitest/coverage-v8dependencies inpackage.jsonfor improved test performance and compatibility. [1] [2]