cypress-failed-log icon indicating copy to clipboard operation
cypress-failed-log copied to clipboard

cypress-failed-log plugin - does not generate the log folder and also the json log file

Open Sukhada2021 opened this issue 2 years ago • 1 comments

cypress-failed-log plugin - does not generate the log folder and also the json log file. Could see it helps to see the log on terminal as well as on browser for debugging. But do not see the log folder generated

Sukhada2021 avatar Oct 10 '22 11:10 Sukhada2021

To add a bit more context, I am seeing the same thing. When I do the following, I do not get anything in cypress/logs...

// cypress.config.ts
export default defineConfig({
  e2e: {
    ...
    setupNodeEvents(on) {
      require('cypress-failed-log/on')(on);
    },
  },
});

When I do the following, I do get content in cypress/logs, but per this package's recommendation, it's not the ideal way...

// cypress/support/e2e.ts
import 'cypress-failed-log';
$ npm view cypress-failed-log version
2.10.0
$ npm view cypress version
10.10.0
$ node -v
v16.17.0

thril avatar Oct 21 '22 20:10 thril