-
Notifications
You must be signed in to change notification settings - Fork 37
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
Update the config to delete the recorded video if no tests are retried #98
Conversation
cypress.config.js
Outdated
@@ -1,7 +1,8 @@ | |||
const {defineConfig} = require('cypress'); | |||
const {tagify} = require('cypress-tags'); | |||
const { defineConfig } = require('cypress'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the spaces here? The coding standard requires there are no spaces there.
cypress.config.js
Outdated
const {defineConfig} = require('cypress'); | ||
const {tagify} = require('cypress-tags'); | ||
const { defineConfig } = require('cypress'); | ||
const { tagify } = require('cypress-tags'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the spaces here? The coding standard requires there are no spaces there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @peterjaap , can you please take a look now? I have removed the whitespaces.
@shyambh I didn't know I had to do that, sorry. Done now. |
This MR breaks the config with
|
Adding a dependency for something as simple as deleting files and folders recursively is maybe not necessary. |
@Vinai Thank you for this. I will take a look at this. |
Another issue is you use
Again, instead of using a dependency, why not use native JS?
|
Did you even test the code before submitting the PR @shyambh ? |
@Vinai I really want to apologize for this. I used a dynamic import for the 'del' package and now the tests are running. Regarding the dependency on the external package, I followed the implementation steps mentioned in the Cypress documentation here: https://docs.cypress.io/api/plugins/after-spec-api#Delete-the-recorded-video-if-no-tests-retried Please let me know if I can push the fix? |
Don't worry, already opened a PR #100 |
* Fix video cleanup from PR #98 * Remove unused deps from PR 98
I have updated the cypress.config.js file to add the code to delete the recorded videos if none of the tests are retried.
I basically simply followed the steps mentioned here:
https://docs.cypress.io/api/plugins/after-spec-api#Delete-the-recorded-video-if-no-tests-retried