We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc13f5c commit dcafe09Copy full SHA for dcafe09
bin/lcov-result-merger.js
@@ -1,6 +1,6 @@
1
#!/usr/bin/env node
2
const fastGlob = require('fast-glob');
3
-const { rename, readFile } = require('node:fs/promises');
+const { copyFile, readFile } = require('node:fs/promises');
4
const { mergeCoverageReportFiles } = require('../index');
5
const yargs = require('yargs/yargs');
6
const { hideBin } = require('yargs/helpers');
@@ -63,7 +63,7 @@ const args = yargs(hideBin(process.argv)).command(
63
const tempFilePath = await mergeCoverageReportFiles(files, args);
64
65
if (args.outFile) {
66
- await rename(tempFilePath, args.outFile);
+ await copyFile(tempFilePath, args.outFile);
67
} else {
68
process.stdout.write(await readFile(tempFilePath, 'utf-8'));
69
}
0 commit comments