Skip to content

Commit

Permalink
fix: ignore missing location on cert check (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam authored Oct 18, 2024
1 parent a7b8f7f commit 22fb009
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/push/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,10 @@ export function validateSettings(opts: PushOptions) {
- CLI '--schedule <mins>'
- Config file 'monitors.schedule' field`;
} else if (opts.schedule && !ALLOWED_SCHEDULES.includes(opts.schedule)) {
reason = `Set default schedule(${
opts.schedule
}) to one of the allowed values - ${ALLOWED_SCHEDULES.join(',')}`;
reason = `Set default schedule(${opts.schedule
}) to one of the allowed values - ${ALLOWED_SCHEDULES.join(',')}`;
} else if (
opts.locations.length > 0 &&
(opts.locations ?? []).length > 0 &&
(opts?.playwrightOptions?.clientCertificates ?? []).filter(cert => {
return cert.certPath || cert.keyPath || cert.pfxPath;
}).length > 0
Expand Down

0 comments on commit 22fb009

Please sign in to comment.