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
{{ message }}
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
I'm trying to pass jetPlaywrightConfig in a test, however I don't seem to get it to work.
This is my test:
import{JestPlaywrightConfig}from'jest-playwright-preset';describe('TEST 001',()=>{constconfig: JestPlaywrightConfig={devices: ['iPhone 11'],contextOptions: {locale: 'nl-NL'},exitOnPageError: true,// requiredbrowsers: ['chromium'],// requiredcollectCoverage: false,// required}// without the required I get a property missing errorit.jestPlaywrightConfig(config,'WITH CONFIG',async()=>{awaitpage.goto('http://google.com');awaitpage.waitForTimeout(10000);}}
Expected: the test launches in a browser sized to iPhone 11 with nl-NL locale. Actual: when I run the test I see a browser open, then a second. Both have the default size. The test is executed inside the first browser.