Enhance CommandLine and TestConfiguration for improved option validation and logging

* Added validation for required command line options in the `CommandLine` class to ensure necessary parameters are provided.
* Updated `TestConfiguration` to store and expose the logging level from command line options.
* Refactored `BrowserstackApi` to improve method naming and added content type headers for API requests.
* Changed `SupportedBrowser` type to be exported for better accessibility.
* Updated `Page` and `SubscribingPage` classes to use a consistent browser import and improved constructor parameters.
This commit is contained in:
2025-08-18 22:07:37 -04:00
parent 1cf223fd85
commit e93eb5fe84
6 changed files with 35 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
type SupportedBrowser = {
export type SupportedBrowser = {
os: string;
os_version: string;
browser: string;
@@ -6,5 +6,3 @@ type SupportedBrowser = {
browser_version: string | null;
real_mobile: boolean;
};
export default SupportedBrowser;