chore: reuse browser in server mode (#495)

This commit is contained in:
Pavel Feldman 2025-05-30 15:15:37 -07:00 committed by GitHub
parent 54ed7c3200
commit eec177d3ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 490 additions and 163 deletions

View file

@ -74,8 +74,8 @@ const defaultConfig: FullConfig = {
type BrowserUserConfig = NonNullable<Config['browser']>;
export type FullConfig = Config & {
browser: BrowserUserConfig & {
browserName: NonNullable<BrowserUserConfig['browserName']>;
browser: Omit<BrowserUserConfig, 'browserName'> & {
browserName: 'chromium' | 'firefox' | 'webkit';
launchOptions: NonNullable<BrowserUserConfig['launchOptions']>;
contextOptions: NonNullable<BrowserUserConfig['contextOptions']>;
},