1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/test/e2e/e2e-process-report.js

11 lines
317 B
JavaScript
Raw Normal View History

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);
});