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

Can't change filterLog (Additional properties not allowed) #54

Closed
avevlad opened this issue Oct 23, 2020 · 0 comments
Closed

Can't change filterLog (Additional properties not allowed) #54

avevlad opened this issue Oct 23, 2020 · 0 comments

Comments

@avevlad
Copy link

avevlad commented Oct 23, 2020

UPD: answer #50 (comment)

cypress-terminal-report: v^2.1.0

module.exports = (on) => {
  require("cypress-terminal-report/src/installLogsPrinter")(on, {
    printLogsToConsole: "always",
    filterLog: ([type, message, severity]) => {
      if (["cons:log"].includes(type)) {
        return true
      }
    },
  })
}

The function exported by the plugins file threw an error.
We invoked the function exported by /Users/name/projects/integration-testing/cypress/plugins/index.js, but it threw an error.

Error: [cypress-terminal-report] Invalid plugin install options:
=> .filterLog: Additional properties not allowed

at installLogsPrinter (/Users/name/projects/integration-testing/node_modules/cypress-terminal-report/src/installLogsPrinter.js:63:11)
at module.exports (/Users/name/projects/integration-testing/cypress/plugins/index.js:4:60)
at /Users/name/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_plugins.js:76:12
at tryCatcher (/Users/name/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
at Function.Promise.attempt.Promise.try (/Users/name/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/metho
@avevlad avevlad closed this as completed Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant