test: fix gatekeeper bypass logic in pagespeed-sitemap.ts by passing TARGET_URL
This commit is contained in:
@@ -148,7 +148,7 @@ async function main() {
|
|||||||
execSync(lhciCommand, {
|
execSync(lhciCommand, {
|
||||||
encoding: 'utf8',
|
encoding: 'utf8',
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
env: { ...process.env, CHROME_PATH: chromePath },
|
env: { ...process.env, CHROME_PATH: chromePath, TARGET_URL: targetUrl },
|
||||||
});
|
});
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
console.warn('⚠️ LHCI assertion finished with warnings or errors.');
|
console.warn('⚠️ LHCI assertion finished with warnings or errors.');
|
||||||
|
|||||||
Reference in New Issue
Block a user