Cypress - File Operations
Why does this code fail?
cy.readFile('config.json').then((data) => {
data.setting = true
})
cy.log(data.setting)cy.readFile('config.json').then((data) => {
data.setting = true
})
cy.log(data.setting)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions