Skip to content

Commit

Permalink
fix error on filter
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-agens committed Mar 11, 2025
1 parent 3b4f4e7 commit f02f30e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111542,7 +111542,7 @@ const writeSummary = async (path, screenshots) => {
core.summary.addHeading("Test results");
const testSuites = document.elements[0].elements;
for (const element of testSuites) {
const testSuitesElements = element.elements;
const testSuitesElements = element.elements || [];
testSuitesElements
.filter((element) => element.name === "testcase")
.forEach((testSuite) => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/writeSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const writeSummary = async (
const testSuites: TestSuite[] = document.elements[0].elements;

for (const element of testSuites) {
const testSuitesElements = element.elements;
const testSuitesElements = element.elements || [];

testSuitesElements
.filter((element) => element.name === "testcase")
Expand Down

0 comments on commit f02f30e

Please sign in to comment.