Skip to content

Commit 5816778

Browse files
committed
test_runner: fix isSkipped check in junit reporter
The `isSkipped` function in the JUnit reporter was incorrectly checking for `node?.attrs.failures` instead of `node?.attrs.skipped`.
1 parent 91dadf2 commit 5816778

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/internal/test_runner/reporter

lib/internal/test_runner/reporter/junit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function isFailure(node) {
5858
}
5959

6060
function isSkipped(node) {
61-
return (node?.children && ArrayPrototypeSome(node.children, (c) => c.tag === 'skipped')) || node?.attrs?.failures;
61+
return (node?.children && ArrayPrototypeSome(node.children, (c) => c.tag === 'skipped')) || node?.attrs?.skipped;
6262
}
6363

6464
module.exports = async function* junitReporter(source) {

0 commit comments

Comments
 (0)