Skip to content

Commit e2a989d

Browse files
committed
fix: resolve path
1 parent 74b1efc commit e2a989d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "junit-to-ctrf",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

src/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export async function convertJUnitToCTRF(
129129
const ctrfReport = createCTRFReport(testCases, toolName, envPropsObj);
130130

131131
const defaultOutputPath = path.join('ctrf', 'ctrf-report.json');
132-
const finalOutputPath = outputPath || defaultOutputPath;
132+
const finalOutputPath = path.resolve(outputPath || defaultOutputPath);
133133

134134
const outputDir = path.dirname(finalOutputPath);
135135
await fs.ensureDir(outputDir);

0 commit comments

Comments
 (0)