Skip to content

Commit 7d9dd88

Browse files
committed
browser path
1 parent 0f89e81 commit 7d9dd88

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/e2e/mocks/puppeteer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const puppeteer = () =>
33
return {
44
default: {
55
launch: () => {
6-
return { executablePath: () => 'path'}
6+
return { browserPath: 'path' }
77
},
88
createBrowserFetcher: () => ({
99
localRevisions: () => Promise.resolve(['123']),

src/run-lighthouse.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ export const getBrowserPath = async () => {
88
headless: "new",
99
args: ['--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage']
1010
});
11-
const executablePath = browser.executablePath();
12-
return executablePath;
11+
return browser.browserPath;
1312
};
1413

1514
export const runLighthouse = async (browserPath, url, settings) => {

0 commit comments

Comments
 (0)