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 introduces significant changes to the project, including the addition of a new
BrowserPoolManager
class, updates to the testing framework, and documentation improvements. The most important changes are outlined below:New Features:
services/browser.service.js
: Added a newBrowserPoolManager
class to manage Puppeteer browser instances with a pool. This class includes methods for acquiring and releasing browsers, creating optimized pages, and retrieving pool metrics.Testing Enhancements:
services/__tests__/browser.service.test.js
: Added comprehensive tests for theBrowserPoolManager
class, including tests for browser pool configuration, browser acquisition and release, and optimized page creation.Configuration Updates:
package.json
: Updated thescripts
section to include Jest testing commands (test
,test:coverage
,test:watch
). Addedjest
andgeneric-pool
to dependencies. Also added Jest configuration for the test environment. [1] [2] [3]Documentation Improvements:
README.md
: Updated the "Buy Me A Coffee" link to use Markdown syntax and specified the language for the code block in the installation section. [1] [2]Minor Changes:
LICENSE.md
: Added a missing hash symbol to the MIT License title for proper Markdown formatting.