I want to clear cache before execution of a test case in Cypress
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Try this method use cy.exec() command in test case
describe('Remove cache', function() {
beforeEach(()=>{
cy.exec('npm cache clear --force',{force:true})
});
it('Cache', function() {
})
})