mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
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);
|
||
|
});
|