mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
c00f74e95e
* multiple reports * fix run all * clean up report
11 lines
317 B
JavaScript
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);
|
|
});
|