1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +01:00
metamask-extension/test/e2e/e2e-process-report.js
Peter c00f74e95e
e2e multiple reports (#17715)
* multiple reports

* fix run all

* clean up report
2023-02-10 19:34:01 +00:00

11 lines
317 B
JavaScript

const fs = require('fs');
const dir = 'test/test-results/e2e';
fs.readdirSync(dir).forEach((file) => {
const currentFile = `${dir}/${file}`;
let data = fs.readFileSync(currentFile, { encoding: 'utf8', flag: 'r' });
data = data.substring(data.indexOf('<testsuite'));
fs.writeFileSync(currentFile, data);
});