Skip to content

Commit

Permalink
chore: add cy.task for logging in setupNodeEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
adeldhis2 committed Oct 3, 2024
1 parent c1f0486 commit 746e960
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ async function setupNodeEvents(on, config) {
chromeAllowXSiteCookies(on, config)
excludeByVersionTags(on, config)

on('task', {
log(message) {
console.log(message)
return null
},
})

// Delete videos for passing tests
on('after:spec', (spec, results) => {
try {
Expand Down

0 comments on commit 746e960

Please sign in to comment.