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

options.collectTypes doesn't support "cy.intercept" #113

Closed
thaiching opened this issue Aug 5, 2021 · 4 comments
Closed

options.collectTypes doesn't support "cy.intercept" #113

thaiching opened this issue Aug 5, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@thaiching
Copy link

thaiching commented Aug 5, 2021

Hi,
First of all thank you for creating this awesome plugin. I've been searching for a plugin to output all the Cypress logs to terminal and this plugin is doing exactly what I needed. :)

In the index.ts plugin file, I've specified the type of logs that I want to output to the terminal using the following lines:

const options = {
  collectTypes: ["cy:log", "cy:xhr", "cy:request", "cy:route", "cy.intercept", "cy:command"],
};

require('cypress-terminal-report/src/installLogsCollector')(options);

However when I run my tests, the following error is thrown. It doesn't look like the collectTypes is supporting "cy.intercept"? However the documentation does mention the support of cy.intercept for collectTypes.

When I removed "cy.intercept", it works fine.

Untitled

@archfz
Copy link
Owner

archfz commented Aug 6, 2021

Its cy:intercept not cy.intercept

@archfz archfz closed this as completed Aug 6, 2021
@thaiching
Copy link
Author

Hi @archfz ,
Sorry for the typo. I've also tried "cy:intercept" but I'm getting an error as well.

Untitled

@archfz archfz reopened this Aug 6, 2021
@archfz archfz self-assigned this Aug 17, 2021
@archfz archfz added the bug Something isn't working label Aug 18, 2021
archfz added a commit that referenced this issue Aug 18, 2021
#113 #114 #116: Fix for skip tests and collect logs validation.
@archfz
Copy link
Owner

archfz commented Aug 18, 2021

Released in 3.3.1

@archfz archfz closed this as completed Aug 18, 2021
@thaiching
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants