Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jun 14, 2023
1 parent 4032374 commit b8c876f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/browser-logs/test/serialize-deserialize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('serialize deserialize', () => {
let browser: Browser;
let page: Page;
before(async () => {
browser = await puppeteer.launch({headless: 'new'});
browser = await puppeteer.launch({ headless: 'new' });
page = await browser.newPage();
await page.goto('about:blank');
await page.evaluate(
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-server/test/integration.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('integration tests', () => {

before(async () => {
browser = await puppeteer.launch({
headless: 'new'
headless: 'new',
});
});

Expand Down
6 changes: 5 additions & 1 deletion packages/test-runner-chrome/src/ChromeLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ export class ChromeLauncher implements BrowserLauncher {
}

launchBrowser(options: PuppeteerNodeLaunchOptions = {}) {
const mergedOptions: PuppeteerNodeLaunchOptions = { headless: 'new', ...this.launchOptions, ...options };
const mergedOptions: PuppeteerNodeLaunchOptions = {
headless: 'new',
...this.launchOptions,
...options,
};
if (this.customPuppeteer) {
// launch using a custom puppeteer instance
return this.customPuppeteer.launch(mergedOptions).catch(error => {
Expand Down

0 comments on commit b8c876f

Please sign in to comment.