@@ -848,17 +848,17 @@ function useGenerateTest(test, projectFilePath) {
848848 console.log('Congrats! Keep up the good work, you have 0 known violations!');
849849 } else {
850850 violations.forEach(axeViolation => {
851- console.log('-------');
852- const whereItFailed = axeViolation.nodes[0].html;
853- // const failureSummary = axeViolation.nodes[0].failureSummary;
851+ const whereItFailed = axeViolation.nodes.map(node => node.html);
852+ // const failureSummary = axeViolation.nodes.map(node => node.failureSummary);
854853
855854 const { description, help, helpUrl } = axeViolation;
856855
857- console.log('TEST DESCRIPTION: ', description,
858- 'ISSUE: ', help,
859- 'MORE INFO: ', helpUrl,
860- 'WHERE IT FAILED: ', whereItFailed,
861- //'how to fix: ', failureSummary
856+ console.log('---------',
857+ '\\nTEST DESCRIPTION: ', description,
858+ '\\nISSUE: ', help,
859+ '\\nMORE INFO: ', helpUrl,
860+ '\\nWHERE IT FAILED: ', whereItFailed,
861+ // '\\nhow to fix: ', failureSummary
862862 );
863863 });
864864 }
0 commit comments