Skip to content

Commit 79a8719

Browse files
author
Adam Tackett
committed
add log task for check
Signed-off-by: Adam Tackett <tackadam@amazon.com>
1 parent 06bd593 commit 79a8719

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.cypress/plugins/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,13 @@ module.exports = (on, config) => {
2525
// `config` is the resolved Cypress config
2626
require('cypress-watch-and-reload/plugins')(config)
2727

28+
// Register custom task for logging to Node console (visible in CI)
29+
on('task', {
30+
log(message) {
31+
console.log(message);
32+
return null;
33+
}
34+
});
35+
2836
return config
2937
}

0 commit comments

Comments
 (0)