Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReportWebVitalsConfig param is not optional in commands.d.ts for reportVitals command #31

Closed
angry-beaver opened this issue Dec 12, 2023 · 1 comment · Fixed by #32
Closed
Labels
bug Something isn't working

Comments

@angry-beaver
Copy link

angry-beaver commented Dec 12, 2023

Issue

ReportWebVitalsConfig param is not optional in commands.d.ts for reportVitals command.

Setup:

  • cypress-web-vitals version: 4.1.0

Details

Screenshot 2023-12-12 at 14 08 32

@angry-beaver angry-beaver changed the title ReportWebVitalsConfig param is not optional in command.d.ts for reportVitals command ReportWebVitalsConfig param is not optional in commands.d.ts for reportVitals command Dec 12, 2023
@cmorten cmorten added the bug Something isn't working label Dec 12, 2023
@cmorten
Copy link
Owner

cmorten commented Dec 12, 2023

You’re right, this should be optional.

reportVitals(reportWebVitalsConfig: ReportWebVitalsConfig);
needs updating

cmorten pushed a commit that referenced this issue Dec 14, 2023
* fix: type updates to allow optional config

* chore: disable chrome web security while testing on 3rd party sites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants