I am using glob pattern to supply 2 xml files but same files from one report is also being included in another report

Source could be that files[] is not been cleared between reports for loop
|
const files = []; |
|
let output = ""; |
|
for (const report of reports) { |