-
Notifications
You must be signed in to change notification settings - Fork 39
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
Need examples of procesLog and filterLog #132
Comments
When in doubt use the browser debugger to check your parameters. Not sure how you are bypassing type errors, as I see you use typescript, and this package has types for all configuration ... Anyway the issues is that both those functions receive a single parameter that is an array. Please recheck the documentation and use array destrcuturing. |
|
I turned off typings and misread the type of function arguments. For future readers, i made it work :
|
@archfz : I think, in the typings file, there are 2 mistakes ==> filterLogs definition ((args: [/* type: / Severity, / message: / string, / severity: */ Severity]) => boolean); Same in processLogs ==> Anyways, thanks a lot for the plugin and the help in fixing my error 👍 |
Indeed that is incorrect, I will reopen the issue for that to be fixed. |
Fixed in 3.4.2 |
@archfz Thank you for your plugin! I think the return type should also be updated.
Instead of |
Released in 3.5.0 |
Hi, thanks for developing this plugin.
I am trying to use filterLog functions [i only want severity 'error' or 'warning'].
I also tried to use processLog function [i wish to add timestamps for my cy.route failure and cy.request failure logs]
The text was updated successfully, but these errors were encountered: